Azzera filtri
Azzera filtri

How to change the colour of the backgroud

1 visualizzazione (ultimi 30 giorni)
Ren
Ren il 23 Ago 2013
Hi, i rotate an image and i want to change the black background to white. Thanks in advance.

Risposta accettata

Laurent
Laurent il 23 Ago 2013
It depends on what type of image you have, but let's say it is a 8-bit grayscale image. In that case you can do the following:
thisim(thisim==0)=255;
where thisim contains your image.
If you would like a more specific answer, please provide us your image.

Più risposte (0)

Categorie

Scopri di più su Display Image 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