How do I individually calculate the area of each enclosed space within a binary image?

1 view (last 30 days)
I have a binary image with multiple enclosed, assumed to be circular, areas and would like to calculate the enclosed areas individually with goal of finding the average enclosed diameter. Taking a cumulative area and solving for diameter is not ideal since this slightly skews the measurements. Is there a way to find and store all of the individual enclosed areas as a vector? Thanks in advance

Answers (1)

Image Analyst
Image Analyst on 11 Apr 2015
Attach your image. I need to know what is foreground and what is background. If it's all white with some black spots, then you can invert and use regionprops. If you have a black background with white spots with enclosed black holes in them, it becomes more tricky.

Community Treasure Hunt

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

Start Hunting!