Effacer les filtres
Effacer les filtres

How to identify and locate cells

5 vues (au cours des 30 derniers jours)
AAS
AAS le 19 Fév 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)

Réponses (1)

yanqi liu
yanqi liu le 20 Fév 2021

Produits


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by