watershed followed by regionprops

1 次查看(过去 30 天)
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

采纳的回答

Image Analyst
Image Analyst 2022-3-25
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().

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Image Segmentation and Analysis 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by