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)
Show older comments
Uzair Khan
on 21 Sep 2015
Commented: Image Analyst
on 21 Sep 2015
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.
0 Comments
Accepted Answer
Image Analyst
on 21 Sep 2015
Call bwareafilt() - it can give you the N largest or smallest blobs.
2 Comments
Image Analyst
on 21 Sep 2015
See the attached routine I used before bwareafilt() was introduced.
More Answers (0)
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!