How can I keep the small black pixels and change the large lump of black pixels to white?

 채택된 답변

Walter Roberson
Walter Roberson 2017년 10월 22일

0 개 추천

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.

댓글 수: 1

Selina Loh
Selina Loh 2017년 10월 22일
But if the larger black pixels are not constant, can i not manually key in the area of the bwareafilt()?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Specialized Power Systems에 대해 자세히 알아보기

질문:

2017년 10월 22일

댓글:

2017년 10월 22일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by