how to display 4 large connected components out of 20 in an image?
Show older comments
how to display 4 large connected components out of 20 in an image?
Answers (1)
Image Analyst
on 10 Dec 2015
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);
Categories
Find more on Image Filtering and Enhancement in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!