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!