Azzera filtri
Azzera filtri

Grayimage back to green

1 visualizzazione (ultimi 30 giorni)
Jane
Jane il 16 Dic 2013
Commentato: Jane il 16 Dic 2013
Hello, how can I convert this grayimage back to an rgb with green fluorescence?
<<
>>

Risposta accettata

Image Analyst
Image Analyst il 16 Dic 2013
Modificato: Image Analyst il 16 Dic 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));

Più risposte (0)

Categorie

Scopri di più su Modify Image Colors 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