gray2rgb conversion

7 views (last 30 days)
NAVNEET NAYAN
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
  1 Comment
Adam
Adam on 27 Apr 2017
Map it onto a colourmap.

Sign in to comment.

Accepted Answer

Walter Roberson
Walter Roberson on 27 Apr 2017
temp = YourGrayImage;
if isfloat(temp)
temp = im2uint8(temp);
end
ColorImage = ind2rgb(temp, TheColorMapToUse);

More Answers (0)

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!