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

 Akzeptierte Antwort

Walter Roberson
Walter Roberson am 2 Jun. 2019

0 Stimmen

5 Kommentare

mohammed alany
mohammed alany am 2 Jun. 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 am 2 Jun. 2019
Bearbeitet: Image Analyst am 2 Jun. 2019
Complement the image, then call bwareafilt, then complement again.
mohammed alany
mohammed alany am 2 Jun. 2019
still i cannot solve the problem,
YourFilledImage = imcomplement(bwareafilt(imcomplement(im2bw(YourImage)),2));
mohammed alany
mohammed alany am 3 Jun. 2019
Many thanks for your help,

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by