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

 Réponse acceptée

Walter Roberson
Walter Roberson le 27 Avr 2017

0 votes

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

Plus de réponses (0)

Catégories

En savoir plus sur Convert Image Type 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