watershed followed by regionprops

4 ビュー (過去 30 日間)
Zohra Megnounif
Zohra Megnounif 2022 年 3 月 25 日
コメント済み: Zohra Megnounif 2022 年 3 月 29 日
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().
  1 件のコメント
Zohra Megnounif
Zohra Megnounif 2022 年 3 月 29 日
Okey thank you :) !!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeImage Segmentation and Analysis についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by