Name
RGB2LAB — converts RGB image to an L*a*b* image
Calling Sequence
LAB = RGB2LAB(RGB);
Parameters
- RGB
3D matrix of type double
- LAB
3D matrix of type double
Description
This function converts an RGB image to L*a*b*.
Examples
RGB = ReadImage('contrib\IPD-5.0\demos\teaset.png');
RGBD = double(RGB) / 255;
LAB = RGB2LAB(RGBD);
figure(); ShowColorImage(LAB, 'L*a*b*');