How to erode certain parts of an image

6 ビュー (過去 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 Center および File ExchangeImage Filtering and Enhancement についてさらに検索

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by