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

 채택된 답변

Walter Roberson
Walter Roberson 2019년 6월 2일

0 개 추천

댓글 수: 5

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

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by