MATLAB: Put color to a gray image gray to color Hi, I need help to make this, I have a gray image and I need to put 3 diferent colors in it, something like this. Thank you. Best Answer gray_as_RGB = repmat(YourGrayImage, [1 1 3]);now gray_as_RGB is the RGB equivalent of the grayscale image and you can write color information into it. Related SolutionsMATLAB: Gray to hot colormap(hot)? MATLAB: Gray image quantization Thank you, I found the Solution:R2D = mat2gray(R2D);[R2D8,map] = gray2ind(R2D,128); pic = ind2gray(R2D8,map);pic = mat2gray(pic);imshow(pic); Related QuestionIncrease RGB image saturation.How to superimpose a RGB image over gray image with background to be transparentGray to BW
Best Answer