MATLAB: How to convert RGB to CIE Lab color space

color space conversionImage Processing Toolbox

How to convert RGB to CIE Lab color space?

Best Answer

Convert the image to L*a*b* color space using makecform and applycform.
colorTransform = makecform('srgb2lab');
lab = applycform(rgbImage, colorTransform);