Issues with imfill() function

Screen Shot 2019-01-21 at 12.36.25 PM.png
I am trying to fill in objects like the above. I think that the function 'imfill()' is not working because the hole is technically open - the boundary of the object does not completely surround the "hole" inside. My goal is to completely fill in the holes (so that I can later automatically segment them). Any recommendations are appreciated!

Respuestas (1)

Tomás Franco
Tomás Franco el 11 de Nov. de 2020

0 votos

Have you considered performing morphological operations such as closing, to close that gap?

Preguntada:

el 21 de En. de 2019

Respondida:

el 11 de Nov. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by