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?

 Réponse acceptée

Anand
Anand le 17 Juin 2013

0 votes

im(im==0) = 255;

Plus de réponses (0)

Catégories

En savoir plus sur Images dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by