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

1 次查看(过去 30 天)
how to display 4 large connected components out of 20 in an image?

回答(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);

类别

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