I want to find the area of largest and second largest white portion/blob of a greyscale image(s) of a .dcm (dicom) file. Can someone help?

1 view (last 30 days)
So far I've tried these two links http://www.mathworks.com/matlabcentral/answers/68696-how-can-i-extract-the-largest-blob-in-a-binary-image#comment_139454 http://www.mathworks.com/matlabcentral/answers/154484-how-can-i-calculate-area-of-an-object-in-the-image-with-png-extension The first one deals with image files and gives an error on the imhist command The second link helps to find out area of all the white portion in the greyscale, however I am only interested in the largest and second largest blobs. This link also deals with image files.

Accepted Answer

Image Analyst
Image Analyst on 21 Sep 2015
Call bwareafilt() - it can give you the N largest or smallest blobs.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!