How to identify and locate cells

5 visualizzazioni (ultimi 30 giorni)
AAS
AAS il 19 Feb 2021
Risposto: yanqi liu il 20 Feb 2021
I have processed the following image and need to identify the cells- location of cells and the count.
Once identified, I would like to fill the cells .
I=imcomplement(imflatfield(rgb2gray(imread('well1.png');
I-imgaussfilt(I,50);
imshow(I)
Because some are clumped, I did use the watershed algorithm but it did not work the way I liked. The image is below. I want the cell lining to be complete for all of them.
L = watershed(I);
Lrgb = label2rgb(L);
imshow(Lrgb)
imshow(imfuse(bw,Lrgb))
bw2 = ~bwareaopen(~bw, 10);
imshow(bw2)
D = -bwdist(~bw);
imshow(D,[])
Ld = watershed(D);
imshow(label2rgb(Ld))
Ld = watershed(D);
imshow(label2rgb(Ld))
bw2 = bw;
bw2(Ld == 0) = 0;
imshow(bw2)
mask = imextendedmin(D,2);
imshowpair(bw,mask,'blend')
D2 = imimposemin(D,mask);
Ld2 = watershed(D2);
bw3 = bw;
bw3(Ld2 == 0) = 0;
imshow(bw3)

Risposte (1)

yanqi liu
yanqi liu il 20 Feb 2021

Prodotti


Release

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by