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

25 Ansichten (letzte 30 Tage)
Veronika
Veronika am 5 Mär. 2017
Kommentiert: eton lin am 27 Apr. 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.

Akzeptierte Antwort

Guillaume
Guillaume am 5 Mär. 2017
Bearbeitet: Guillaume am 5 Mär. 2017
yourbwimage = ~yourbwimage
Simple as that, or
yourbwimage = logical(1 - yourbwimage)

Weitere Antworten (0)

Kategorien

Mehr zu Convert Image Type finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by