Borrar filtros
Borrar filtros

Changing black pixels to white.

2 visualizaciones (últimos 30 días)
Selina Loh
Selina Loh el 22 de Oct. de 2017
Comentada: Selina Loh el 22 de Oct. de 2017
How can I keep the small black pixels and change the large lump of black pixels to white?

Respuesta aceptada

Walter Roberson
Walter Roberson el 22 de Oct. de 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.
  1 comentario
Selina Loh
Selina Loh el 22 de Oct. de 2017
But if the larger black pixels are not constant, can i not manually key in the area of the bwareafilt()?

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by