gray2rgb conversion
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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
il 27 Apr 2017
temp = YourGrayImage;
if isfloat(temp)
temp = im2uint8(temp);
end
ColorImage = ind2rgb(temp, TheColorMapToUse);
0 Commenti
Più risposte (0)
Vedere anche
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!