Name

LAB2RGB — converts L*a*b* image to an RGB image

Calling Sequence

RGB = RGB2LAB(LAB);

Parameters

LAB

3D matrix of type double

RGB

3D matrix of type double

Description

This function converts an L*a*b* image to RGB.

Examples

RGB = ReadImage('contrib\IPD-3.1\demos\teaset.png');

RGBD = double(RGB) / 255;

LAB = RGB2LAB(RGBD);

RGB_New = LAB2RGB(LAB);

figure(); ShowColorImage(uint8(255 * RGB_New), 'Result of LAB -> RGB');

See also

RGB2Gray, RGB2LAB, ConvertColorSpace