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

25 vues (au cours des 30 derniers jours)
Veronika
Veronika le 5 Mar 2017
Commenté : eton lin le 27 Avr 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.
  1 commentaire
eton lin
eton lin le 27 Avr 2017
Veronika, you can use NOT operator: imshow(~BW)

Connectez-vous pour commenter.

Réponse acceptée

Guillaume
Guillaume le 5 Mar 2017
Modifié(e) : Guillaume le 5 Mar 2017
yourbwimage = ~yourbwimage
Simple as that, or
yourbwimage = logical(1 - yourbwimage)

Plus de réponses (0)

Catégories

En savoir plus sur Convert Image Type dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by