how to convert grayscale image to rgb image
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
tawheed jan
il 1 Nov 2013
Commentato: Image Analyst
il 22 Gen 2021
In my problem i have taken a colored image & converted it to grayscale(double).After processing now i want the colored image back.plz tell me how to do this.
0 Commenti
Risposta accettata
Image Analyst
il 1 Nov 2013
First convert to an indexed image with uint8(). Then choose a colormap, then call ind2rgb().
2 Commenti
mohd akmal masud
il 22 Gen 2021
hi sir, can you show the coding. let saya my coding is
B = dicomread('TRANSA001_CT025.dcm');
Image Analyst
il 22 Gen 2021
% Convert RGB image to gray scale
grayImage = rgb2gray(B);
% Get color image "back":
% Nothing to do - you still have B (the original RGB image) so you're all set.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Convert Image Type in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!