Grayimage back to green
1 view (last 30 days)
Show older comments
Hello, how can I convert this grayimage back to an rgb with green fluorescence?
<<
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/153725/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/153726/image.png)
>>
0 Comments
Accepted Answer
Image Analyst
on 16 Dec 2013
Edited: Image Analyst
on 16 Dec 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));
More Answers (0)
See Also
Categories
Find more on Modify Image Colors in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!