How to erode certain parts of an image

조회 수: 4 (최근 30일)
Adam Kelly
Adam Kelly 2019년 11월 8일
댓글: Adam Kelly 2019년 11월 8일
Hey does anyone know the best way to erode certain parts of a binary image. I need to get rid of the left hand side that is the black box with the stars and IRL in it and the dashes between 131 CN 37.
I have tried imerode rectangle, square, disk and non of them have gotten rid of what I needed. Any help would be great!Binary.jpg

채택된 답변

KALYAN ACHARJYA
KALYAN ACHARJYA 2019년 11월 8일
편집: KALYAN ACHARJYA 2019년 11월 8일
You can do that in multiple ways:
result1=bwareafilt(binary_image,1);
result2=~bwareafilt(~result1,9);
imshow(result2)
678.png
  댓글 수: 2
KALYAN ACHARJYA
KALYAN ACHARJYA 2019년 11월 8일
편집: KALYAN ACHARJYA 2019년 11월 8일
Is it solved now?
Adam Kelly
Adam Kelly 2019년 11월 8일
Yes thank you so much, I have to know try count the numbers and letters so I am doing that!

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Import and Analysis에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by