FUNCTION REFERENCE

lab2rgb

Convert CIE 1976 L*a*b* colors to RGB.

Convert CIE 1976 L*a*b* colors to RGB.

Syntax

RGB = lab2rgb(L, 'WhitePoint', white, 'ColorSpace', space, 'OutputType', type)

Input is a double or single P-by-3 colormap or M-by-N-by-3 image. WhitePoint and ColorSpace match rgb2lab. OutputType is double, single, uint8 or uint16; default is the input class. Floating results preserve out-of-gamut values. Integer results are rounded and saturated.

Example

lab2rgb([50 0 0], 'OutputType', 'uint8')

Differences from MATLAB: Four-dimensional stacks and other RGB spaces are not supported.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.