how can I convert a grayscale image into RGB image??
Thanks
navneet nayan

 Respuesta aceptada

Walter Roberson
Walter Roberson el 27 de Abr. de 2017

0 votos

temp = YourGrayImage;
if isfloat(temp)
temp = im2uint8(temp);
end
ColorImage = ind2rgb(temp, TheColorMapToUse);

Más respuestas (0)

Categorías

Más información sobre Convert Image Type en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 27 de Abr. de 2017

Respondida:

el 27 de Abr. de 2017

Community Treasure Hunt

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

Start Hunting!

Translated by