<< RGB2Ind IPD - Image Processing Design ReadImage >>

IPD - Image Processing Design >> IPD - Image Processing Design > RGB2LAB

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

global IPD_PATH;

RGB = ReadImage(IPD_PATH + 'demos\teaset.png');

RGBD = double(RGB) / 255;

LAB = RGB2LAB(RGBD);

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

See also

<< RGB2Ind IPD - Image Processing Design ReadImage >>