how can i fill this competent?

I have a binary mask and I want to fill the hole but this hole is not connected. how can I do it?I attach this mask. thanks in advance.

Réponses (1)

Massimo Zanetti
Massimo Zanetti le 7 Oct 2016

4 votes

Use morphological operator imdilate to dilate the boundary, and then imfill. See documentation to get insights.

Catégories

En savoir plus sur Images dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by