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!