Grayimage back to green
1 次查看(过去 30 天)
显示 更早的评论
Hello, how can I convert this grayimage back to an rgb with green fluorescence?
<<
>>
0 个评论
采纳的回答
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 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!