MATLAB: Rgb2lab color conversion

Image Processing Toolboxrgb2lab

Hi, I am using rgb2lab color space conversion and am receiving values in the range of e+03, are these values correct?

Best Answer

Either convert the input argument to uint8 or divide it by 255 and you will get the correct output. Many MATLAB color/image functions assume that a double input is in the range 0-1, which clearly your data is not.