<< RGB2Ind Image Processing Design ReadImage >>

Image Processing Design >> 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


Report an issue
<< RGB2Ind Image Processing Design ReadImage >>