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-3.1\demos\teaset.png');

RGBD = double(RGB) / 255;

LAB = RGB2LAB(RGBD);

figure(); ShowColorImage(LAB, 'L*a*b*');

See also

RGB2Gray, LAB2RGB, ConvertColorSpace