Function Index
ToCIELABColor
ToCIELABColor[
img
]
returns an
ImageData
expression with
ColorFunction
→
CIELABColor
given an
RGBColor
image or a meshed or planar array of pixel values.
CIELABColor
is the 1976 CIE (
Commission Internationale de L
'
Eclairage
) perceptually uniform L
*
a
*
b
*
color space.
The
RGBColor
to
CIELABColor
transformation is based on the following formulas:
,
,
.
X, Y, and Z are the
CIEXYZColor
tristimulus values and X
n
, Y
n
, and Z
n
are the tristimulus values of the reference white point defined by the value of the option
Illuminant
. The function f is a nonlinear transformation defined as follows:
ToCIELABColor
returns lightness in the range 0≤L
*
≤100, and the two color components ranging approximately -100≤a
*
, b
*
≤100 .
The options
Chromaticity
and
Illuminant
may be used to modify particular attributes of the transformation.
See also User's Guide
3.5
.
New in Version 2.
Example
This loads the package.
In[1]:=
This reads an RGB color example image and scales the image to the range {0,1}.
In[2]:=
Out[2]=
This returns a
CIELABColor
image.
In[3]:=
Out[3]//InputForm=
© 2009 Wolfram Research, Inc.
•
Terms of Use
•
Privacy Policy
Sign up for our newsletter: