gray2rgb conversion
7 views (last 30 days)
Show older comments
NAVNEET NAYAN
on 27 Apr 2017
Answered: Walter Roberson
on 27 Apr 2017
how can I convert a grayscale image into RGB image??
Thanks
navneet nayan
Accepted Answer
Walter Roberson
on 27 Apr 2017
temp = YourGrayImage;
if isfloat(temp)
temp = im2uint8(temp);
end
ColorImage = ind2rgb(temp, TheColorMapToUse);
0 Comments
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!