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

 Akzeptierte Antwort

Walter Roberson
Walter Roberson am 27 Apr. 2017

0 Stimmen

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 Hilfe-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