removing border pixels in a binary image
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Apoorva Maiya
el 13 de Mayo de 2020
Respondida: Apoorva Maiya
el 17 de Mayo de 2020
Hello all, below is a binary image
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/292639/image.png)
i want to remove the border pixels as shown in red (i used paint to highlight ) in the below image
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/292640/image.png)
I cannot use imclearborder for this task as it eliminates any pixel attactched to the border too. So i was thinking we could write a loop and set the first and last white oixel in each row to zero. I am not quite sure how to write the loop. Can anyone help me with this problem?
9 comentarios
Respuesta aceptada
Más respuestas (0)
Ver también
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!