Remove unwanted regions in binary image
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Syed Haider
le 18 Jan 2018
Réponse apportée : Image Analyst
le 18 Jan 2018
I have the following input image.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/169112/image.jpeg)
I want to remove the unwanted regions highlighted with red ellipses. This binary image can be tilted at any angle. Hence, counting the white pixels in each row and applying thresholding didn't work for tilted image.
After removing unwanted regions, I want to reduce the thickness of this rectangle to single pixel thickness. I want to only consider the black pixels that are next to the white pixels and remove the outer black pixels. I have tried thin and skel morphological operations but didn't work for me.
Thanks in advance,
Syed
0 commentaires
Réponse acceptée
Plus de réponses (0)
Voir également
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!