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

25 visualizzazioni (ultimi 30 giorni)
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.

Risposta accettata

Guillaume
Guillaume il 5 Mar 2017
Modificato: Guillaume il 5 Mar 2017
yourbwimage = ~yourbwimage
Simple as that, or
yourbwimage = logical(1 - yourbwimage)

Più risposte (0)

Categorie

Scopri di più su Convert Image Type 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!

Translated by