Changing black pixels to white.
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Selina Loh
il 22 Ott 2017
Commentato: Selina Loh
il 22 Ott 2017
How can I keep the small black pixels and change the large lump of black pixels to white?
0 Commenti
Risposta accettata
Walter Roberson
il 22 Ott 2017
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.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Image Analysis in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!