how to display 4 large connected components out of 20 in an image?

1 回表示 (過去 30 日間)
MoonPie1
MoonPie1 2015 年 12 月 10 日
回答済み: Image Analyst 2015 年 12 月 10 日
how to display 4 large connected components out of 20 in an image?
  1 件のコメント
MoonPie1
MoonPie1 2015 年 12 月 10 日
As it is medical image, i am not able to use bwfilt command..

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

回答 (1 件)

Image Analyst
Image Analyst 2015 年 12 月 10 日
There is no bwfilt() function that I've heard of. Use bwareafilt(). It does not care in the slightest where your binary image originated, like if it was from a medical image or some other image.
biggest4 = bwareafilt(binaryImage, 4);

Community Treasure Hunt

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

Start Hunting!

Translated by