You are here : matlabImage Processingxyz2lab

xyz2lab() - Image Processing

lab = xyz2lab(xyz) converts
CIE 1931 XYZ values to CIE 1976 L*a*b* values. examplelab = xyz2lab(xyz,Name,Value) specifies
additional options with one or more Name,Value pair arguments.


Syntax

lab = xyz2lab(xyz) examplelab = xyz2lab(xyz,Name,Value) example


Example

Convert XYZ color to L*a*b*xyz2lab([0.25 0.40 0.10])ans =

   69.4695  -48.0361   57.1279Convert XYZ color to L*a*b* using D50 as reference whitexyz2lab([0.25 0.40 0.10],'WhitePoint','d50')ans =

   69.4695  -49.5717   48.3864


Output / Return Value


Limitations


Alternatives / See Also


Reference