Changing black pixels to white.
조회 수: 3 (최근 30일)
이전 댓글 표시
How can I keep the small black pixels and change the large lump of black pixels to white?
댓글 수: 0
채택된 답변
Walter Roberson
2017년 10월 22일
inverted = ~YourBWImae; %now black is 1, white is 0
Now you can do bwareafilt() on inverted, telling to keep only the groups that are sufficiently small for your purpose. Then after that, invert the result of that so that black goes back to being represented by 0.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Image Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!