watershed followed by regionprops
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Zohra Megnounif
il 25 Mar 2022
Commentato: Zohra Megnounif
il 29 Mar 2022
hello, I have an image with circular objects and other ellipticals, knowing that the circulars touch the ellipticals, so I used the watershed to separate the objects so I have several gray levels, and now I want to use the regionprops to keep only the circular form. how can i do it please? I don't want to go through the multithreshold.
Thank you
0 Commenti
Risposta accettata
Image Analyst
il 25 Mar 2022
Something like
props = regionprops(labeledImage, 'Circularity');
% Keep only blobs with circularity > 0.6
keepers = find([props.Circularity] > 0.6);
% Get the new binary image.
binaryImage = ismember(labeledImage, keepers);
labeledImage comes from watershed().
Più risposte (0)
Vedere anche
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!