gray2rgb conversion

4 Ansichten (letzte 30 Tage)
NAVNEET NAYAN
NAVNEET NAYAN am 27 Apr. 2017
Beantwortet: Walter Roberson am 27 Apr. 2017
how can I convert a grayscale image into RGB image??
Thanks
navneet nayan
  1 Kommentar
Adam
Adam am 27 Apr. 2017
Map it onto a colourmap.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 27 Apr. 2017
temp = YourGrayImage;
if isfloat(temp)
temp = im2uint8(temp);
end
ColorImage = ind2rgb(temp, TheColorMapToUse);

Weitere Antworten (0)

Kategorien

Mehr zu Convert Image Type finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by