how to fill the vacancy in a binary image

4 views (last 30 days)
hi there is a binary image how can I fill the vacancy(blue) in the yellow region?

Accepted Answer

Image Analyst
Image Analyst on 9 Dec 2016
Use imfill():
binaryImage = imfill(binaryImage, 'holes');

More Answers (0)

Categories

Find more on Image Processing Toolbox 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!