conversion of pixel values in a gray scale image

I have a gray scale image . I want to convert all the zero pixel values to 255. is there any function to do so?

 Akzeptierte Antwort

Anand
Anand am 17 Jun. 2013

0 Stimmen

im(im==0) = 255;

Weitere Antworten (0)

Kategorien

Mehr zu Images finden Sie in Hilfe-Center und File Exchange

Gefragt:

BV
am 17 Jun. 2013

Community Treasure Hunt

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

Start Hunting!

Translated by