How to convert the grayscale image into rgb image ????
4 次查看(过去 30 天)
显示 更早的评论
How to convert the grayscale image into rgb image ????
1 个评论
KSSV
2018-1-18
You should be having colormap for this. You need to have a color data of the concerned image.
回答(2 个)
Walter Roberson
2018-1-18
RGB_Image = Grayscale_Image(:,:,[1 1 1]);
which is the same as
RGB_Image = repmat(Grayscale_Image, 1, 1, 3);
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Convert Image Type 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!