필터 지우기
필터 지우기

Changing black pixels to white.

조회 수: 3 (최근 30일)
Selina Loh
Selina Loh 2017년 10월 22일
댓글: Selina Loh 2017년 10월 22일
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일
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개)

카테고리

Help CenterFile Exchange에서 Image Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by