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!