colour.Lab_to_XYZ¶
-
colour.Lab_to_XYZ(Lab, illuminant=array([ 0.3127, 0.329 ]))[source]¶ Converts from CIE L*a*b* colourspace to CIE XYZ tristimulus values.
Parameters: - Lab (array_like) – CIE L*a*b* colourspace array.
- illuminant (array_like, optional) – Reference illuminant xy chromaticity coordinates or CIE xyY colourspace array.
Returns: CIE XYZ tristimulus values.
Return type: ndarray
Notes
Domain Scale - Reference Scale - 1 LabL: [0, 100]a: [-100, 100]b: [-100, 100]L: [0, 1]a: [-1, 1]b: [-1, 1]illuminant[0, 1] [0, 1] Range Scale - Reference Scale - 1 XYZ[0, 1] [0, 1] References
Examples
>>> Lab = np.array([41.52787529, 52.63858304, 26.92317922]) >>> Lab_to_XYZ(Lab) # doctest: +ELLIPSIS array([ 0.2065400..., 0.1219722..., 0.0513695...])