How to get the two biggest objects/blobs from a binary image?

3 ビュー (過去 30 日間)
peyush
peyush 2015 年 7 月 19 日
コメント済み: peyush 2015 年 7 月 20 日
I have a binary image having 3 or more blobs...I need to display an image which displays only the two biggest(biggest in terms of area) blobs while rejectingrejecting others....how can I do this?

採用された回答

Image Analyst
Image Analyst 2015 年 7 月 20 日
Try bwareafilt():
BW2 = bwareafilt(BW, 2, 'Largest');

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by