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?

 采纳的回答

5 个评论

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,

请先登录,再进行评论。

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Images 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by