imfill small but not big holes

2 次查看(过去 30 天)
MARIA RODRIGUEZ SANZ
评论: Rik 2018-7-18
Hello!
I'm interested in measuring the area of the "bigger holes" in the middle of this image. Does anyone have an idea of how can I fill the smaller holes without filling the bigger ones? Is there any way to specify the size of the holes that you want to fill?
Thanks in advanced.
Maria
  1 个评论
Rik
Rik 2018-7-18
You could use imfill to fill all holes, then compare with your original image to find all holes themselves, and loop (or arrayfun) through all holes to determine with regionprops which holes shouldn't have been filled.

请先登录,再进行评论。

回答(0 个)

产品


版本

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by