Color space conversions, support for International Color Consortium (ICC) profiles

The toolbox represents colors as RGB values, but there are other models besides RGB for representing colors numerically. The various color spaces exist because they present color information in ways that make certain calculations more convenient or because they provide a more intuitive way to identify colors. The toolbox provides functions for converting color data from one color space to another. The toolbox also support International Color Consortium (ICC) profiles for describing colors.


rgb2lab Convert RGB to CIE 1976 L*a*b*
rgb2ntsc Convert RGB color values to NTSC color space
rgb2xyz Convert RGB to CIE 1931 XYZ
rgb2ycbcr Convert RGB color values to YCbCr color space
lab2rgb Convert CIE 1976 L*a*b* to RGB
lab2xyz Convert CIE 1976 L*a*b* to CIE 1931 XYZ
xyz2lab Convert CIE 1931 XYZ to CIE 1976 L*a*b*
xyz2rgb Convert CIE 1931 XYZ to RGB
ycbcr2rgb Convert YCbCr color values to RGB color space
ntsc2rgb Convert NTSC values to RGB color space
lab2double Convert L*a*b* data to double
lab2uint16 Convert L*a*b* data to uint16
lab2uint8 Convert L*a*b* data to uint8
xyz2double Convert XYZ color values to double
xyz2uint16 Convert XYZ color values to uint16
iccfind Search for ICC profiles
iccread Read ICC profile
iccroot Find system default ICC profile repository
iccwrite Write ICC color profile to disk file
isicc True for valid ICC color profile
makecform Create color transformation structure
applycform Apply device-independent color space transformation
imapprox Approximate indexed image by reducing number of colors
whitepoint XYZ color values of standard illuminants
Was this topic helpful?