how to back grat to rgb gray2rgb function not found
Best Answer
If you have a color map - a mapping of what intensity should go to what color, like what imread() or rgb2ind() can give you - then you can use ind2rgb.
I'd just use colormap and not mess with contours unless you know what you're doing and what you want. To pseudocolor a grayscale image an leave it as grayscale but display it as colored:
imshow(grayImage);
colormap(jet(256));
colorbar;
To convert a grayscale image into a true color RGB image and display the RGB image instead of the pseudocolored image:
Best Answer