Detect edge and remove it
Mostrar comentarios más antiguos
I need to combine the black and white colour together and left this picture with only the words and number.. can anyone show me on the right approach to solve this problem.

Respuesta aceptada
Más respuestas (1)
Image Analyst
el 10 de Oct. de 2013
You can simply do this:
binaryImage = imclearborder(~binaryImage);
This gives white letters on a black background (what is needed for most subsequent operations). Invert it if you want black letters on a white background.
binaryImage = ~imclearborder(~binaryImage);
2 comentarios
Cedric
el 10 de Oct. de 2013
I didn't know IMCLEARBORDER, thank you for the update!
Categorías
Más información sobre Object Analysis en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!