Grayimage back to green
18 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello, how can I convert this grayimage back to an rgb with green fluorescence?
<<


>>
0 commentaires
Réponse acceptée
Image Analyst
le 16 Déc 2013
Modifié(e) : Image Analyst
le 16 Déc 2013
blackImage = zeros(size(grayImage), 'uint8');
rgbImage = cat(3, blackImage, grayImage, blackImage);
Or you can use ind2rgb():
cmap = [zeros(256,1), (0:255)', zeros(256,1)]
rgbImage = uint8(ind2rgb(grayImage, cmap));
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Image Processing Toolbox dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!