MATLAB: Gray image to rgb image

gray to rgbImage Processing Toolbox

I converted a color image to gray using rgb2gray and denoised the image. Now i wanted to convert the denoised gray image to a color image… Is it possible…. Please can someone help me…. Please do reply….

Best Answer

You can use ind2rgb() but you have to supply a colormap. It won't look like the original colors though - you lost those when you went to gray. Why don't you just denoise each channel one at a time? Or convert to hsv and denoise just the v channel. Either of those methods will not lose the color information like your method does.
Related Question