Detect edge and remove it
显示 更早的评论
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.

采纳的回答
更多回答(1 个)
Image Analyst
2013-10-10
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 个评论
Cedric
2013-10-10
I didn't know IMCLEARBORDER, thank you for the update!
类别
在 帮助中心 和 File Exchange 中查找有关 Object Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!