MATLAB Answers

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

2 views (last 30 days)
Matthew Schneck
Matthew Schneck on 10 Apr 2015
Answered: Image Analyst on 11 Apr 2015
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

  0 Comments

Sign in to comment.

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.

  0 Comments

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!