how to fill the vacancy in a binary image

hi there is a binary image how can I fill the vacancy(blue) in the yellow region?

 Accepted Answer

Use imfill():
binaryImage = imfill(binaryImage, 'holes');

More Answers (0)

Categories

Find more on Images 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!