![678.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/247418/678.png)
How to erode certain parts of an image
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Adam Kelly
il 8 Nov 2019
Commentato: Adam Kelly
il 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!![Binary.jpg](https://www.mathworks.com/matlabcentral/answers/uploaded_files/247415/Binary.jpeg)
![Binary.jpg](https://www.mathworks.com/matlabcentral/answers/uploaded_files/247415/Binary.jpeg)
0 Commenti
Risposta accettata
KALYAN ACHARJYA
il 8 Nov 2019
Modificato: KALYAN ACHARJYA
il 8 Nov 2019
You can do that in multiple ways:
result1=bwareafilt(binary_image,1);
result2=~bwareafilt(~result1,9);
imshow(result2)
![678.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/247418/678.png)
2 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Startup and Shutdown in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!