Grayimage back to green
24 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Jane
am 16 Dez. 2013
Kommentiert: Jane
am 16 Dez. 2013
Hello, how can I convert this grayimage back to an rgb with green fluorescence?
<<


>>
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 16 Dez. 2013
Bearbeitet: Image Analyst
am 16 Dez. 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));
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!