How to fill in boundaries (Image)

6 views (last 30 days)
Student Moo
Student Moo on 15 Nov 2018
Answered: Image Analyst on 15 Nov 2018
Screen Shot 2018-11-15 at 8.09.10 PM.png
Hi everybody,
is there any simple code in MATLAB that can fill in the region between the boundaries as attached to this question.
Thank you in advance.
Have a great day!

Answers (1)

Image Analyst
Image Analyst on 15 Nov 2018
Yes, imfill():
binaryImage = imfill(binaryImage, 'holes');

Categories

Find more on Image Processing and Computer Vision in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!