conversion of pixel values in a gray scale image

4 visualizaciones (últimos 30 días)
BV
BV el 17 de Jun. de 2013
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
im(im==0) = 255;

Más respuestas (0)

Categorías

Más información sobre Convert Image Type en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by