How to erode certain parts of an image
1 次查看(过去 30 天)
显示 更早的评论
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!
0 个评论
采纳的回答
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)
2 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!