Image Segmentation - Watershed Algorithm
Afficher commentaires plus anciens
I have followed the very helpful instructions on Steve Eddin's blog post concerning image segmentation of cells using the watershed algorithm. I have one piece to fine tune in my own image that I am working on. There are small sections in the cluster of cells in the top right corner where the algorithm produces segments for what should be the background. Can anyone suggest any strategies for resolving this? I am providing my code, the input image and my annotated output image showing the sections I would like to relegate to the background region.
Input image (b&w), output image (rgb); arrows point to sections I am trying to address.:

function A = getArea(I)
level = graythresh(I);
bw = imbinarize(I,level);
bw3 = imopen(bw,ones(5,5));
bw4 = bwareaopen(bw3,40);
mask_em = imextendedmax(I,30);
I_c = imcomplement(I);
I_mod = imimposemin(I_c, ~bw4 | mask_em);
L = watershed(I_mod);
imshow(label2rgb(L));
end
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Image Segmentation dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!