How to convert the grayscale image into rgb image ????
7 views (last 30 days)
Show older comments
How to convert the grayscale image into rgb image ????
1 Comment
KSSV
on 18 Jan 2018
You should be having colormap for this. You need to have a color data of the concerned image.
Answers (2)
Walter Roberson
on 18 Jan 2018
RGB_Image = Grayscale_Image(:,:,[1 1 1]);
which is the same as
RGB_Image = repmat(Grayscale_Image, 1, 1, 3);
0 Comments
See Also
Categories
Find more on Convert Image Type 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!