How to erode certain parts of an image
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Adam Kelly
le 8 Nov 2019
Commenté : Adam Kelly
le 8 Nov 2019
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 commentaires
Réponse acceptée
KALYAN ACHARJYA
le 8 Nov 2019
Modifié(e) : KALYAN ACHARJYA
le 8 Nov 2019
You can do that in multiple ways:
result1=bwareafilt(binary_image,1);
result2=~bwareafilt(~result1,9);
imshow(result2)
2 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Startup and Shutdown dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!