How to change colour (black to white) in binary image?

14 visualizaciones (últimos 30 días)
Veronika
Veronika el 5 de Mzo. de 2017
Comentada: eton lin el 27 de Abr. de 2017
Dear all,
I have this binary image:
I would like to convert the colours black into white and white into black. Is it possible? I also attach this binary image. Thank you for your answers.

Respuesta aceptada

Guillaume
Guillaume el 5 de Mzo. de 2017
Editada: Guillaume el 5 de Mzo. de 2017
yourbwimage = ~yourbwimage
Simple as that, or
yourbwimage = logical(1 - yourbwimage)

Más respuestas (0)

Categorías

Más información sobre Convert Image Type en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by