Convert Some Pixel from binary image

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

 Accepted Answer

5 Comments

thanks but i faced another problem,
how i can convert the image bellow
i need to remove just the small holesques2.jpg
Complement the image, then call bwareafilt, then complement again.
still i cannot solve the problem,
YourFilledImage = imcomplement(bwareafilt(imcomplement(im2bw(YourImage)),2));
Many thanks for your help,

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!