gray2rgb conversion

4 visualizzazioni (ultimi 30 giorni)
NAVNEET NAYAN
NAVNEET NAYAN il 27 Apr 2017
Risposto: Walter Roberson il 27 Apr 2017
how can I convert a grayscale image into RGB image??
Thanks
navneet nayan

Risposta accettata

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

Più risposte (0)

Categorie

Scopri di più su Convert Image Type in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by