Issues with imfill() function
조회 수: 3 (최근 30일)
이전 댓글 표시
![Screen Shot 2019-01-21 at 12.36.25 PM.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/200922/Screen%20Shot%202019-01-21%20at%2012.36.25%20PM.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!
댓글 수: 0
답변 (1개)
Tomás Franco
2020년 11월 11일
Have you considered performing morphological operations such as closing, to close that gap?
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!