gray2rgb conversion

4 vues (au cours des 30 derniers jours)
NAVNEET NAYAN
NAVNEET NAYAN le 27 Avr 2017
how can I convert a grayscale image into RGB image??
Thanks
navneet nayan
  1 commentaire
Adam
Adam le 27 Avr 2017
Map it onto a colourmap.

Connectez-vous pour commenter.

Réponse acceptée

Walter Roberson
Walter Roberson le 27 Avr 2017
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 Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by