Dear all
If I have a binary image like the one below,
how i can remove the black color inside the white color?

 Réponse acceptée

Walter Roberson
Walter Roberson le 2 Juin 2019

0 votes

5 commentaires

mohammed alany
mohammed alany le 2 Juin 2019
thanks but i faced another problem,
how i can convert the image bellow
i need to remove just the small holesques2.jpg
Walter Roberson
Walter Roberson le 2 Juin 2019
Modifié(e) : Image Analyst le 2 Juin 2019
Complement the image, then call bwareafilt, then complement again.
mohammed alany
mohammed alany le 2 Juin 2019
still i cannot solve the problem,
YourFilledImage = imcomplement(bwareafilt(imcomplement(im2bw(YourImage)),2));
mohammed alany
mohammed alany le 3 Juin 2019
Many thanks for your help,

Connectez-vous pour commenter.

Plus de réponses (0)

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