colour.XYZ_to_xy¶
-
colour.
XYZ_to_xy
(XYZ, illuminant=array([ 0.3457, 0.3585]))[source]¶ Returns the xy chromaticity coordinates from given CIE XYZ tristimulus values.
Parameters: - XYZ (array_like) – CIE XYZ tristimulus values.
- illuminant (array_like, optional) – Reference illuminant chromaticity coordinates.
Returns: xy chromaticity coordinates.
Return type: ndarray
Notes
- Input CIE XYZ tristimulus values are in domain [0, 1].
- Output xy chromaticity coordinates are in range [0, 1].
References
Examples
>>> XYZ = np.array([0.07049534, 0.10080000, 0.09558313]) >>> XYZ_to_xy(XYZ) array([ 0.2641477..., 0.3777000...])