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?

 Respuesta aceptada

Anand
Anand el 17 de Jun. de 2013

0 votos

im(im==0) = 255;

Más respuestas (0)

Categorías

Más información sobre Images en Centro de ayuda y File Exchange.

Preguntada:

BV
el 17 de Jun. de 2013

Community Treasure Hunt

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

Start Hunting!

Translated by