MATLAB: Convert RGB to GRAY image processing How to convert the image RGB to GRAYSCALE..But not working the rgbtogray function Best Answer Perhaps you mean RGB2GRAY. I don't know of any RGBTOGRAY function. 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 QuestionRGB to HSV conversion then Generating a HistogramError using rgb2gray
Best Answer