Grayimage back to green

1 次查看(过去 30 天)
Jane
Jane 2013-12-16
评论: Jane 2013-12-16
Hello, how can I convert this grayimage back to an rgb with green fluorescence?
<<
>>

采纳的回答

Image Analyst
Image Analyst 2013-12-16
编辑:Image Analyst 2013-12-16
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));

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Modify Image Colors 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by