gray2rgb conversion

7 visualizaciones (últimos 30 días)
NAVNEET NAYAN
NAVNEET NAYAN el 27 de Abr. de 2017
Respondida: Walter Roberson el 27 de Abr. de 2017
how can I convert a grayscale image into RGB image??
Thanks
navneet nayan
  1 comentario
Adam
Adam el 27 de Abr. de 2017
Map it onto a colourmap.

Iniciar sesión para comentar.

Respuesta aceptada

Walter Roberson
Walter Roberson el 27 de Abr. de 2017
temp = YourGrayImage;
if isfloat(temp)
temp = im2uint8(temp);
end
ColorImage = ind2rgb(temp, TheColorMapToUse);

Más respuestas (0)

Categorías

Más información sobre Modify Image Colors en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by