colour.XYZ_to_UVW¶
-
colour.
XYZ_to_UVW
(XYZ, illuminant=array([ 0.3457, 0.3585]))[source]¶ Converts from CIE XYZ tristimulus values to CIE 1964 U*V*W* colourspace.
Parameters: - XYZ (array_like) – CIE XYZ tristimulus values.
- illuminant (array_like, optional) – Reference illuminant xy chromaticity coordinates or CIE xyY colourspace array.
Returns: CIE 1964 U*V*W* colourspace array.
Return type: ndarray
Warning
The input domain and output range of that definition are non standard!
Notes
- Input CIE XYZ tristimulus values are in domain [0, 100].
- Input illuminant xy chromaticity coordinates or CIE xyY colourspace array are in domain [0, \(\infty\)].
- Output CIE 1964 U*V*W* colourspace array is in range [0, 100].
References
Examples
>>> import numpy as np >>> XYZ = np.array([0.07049534, 0.10080000, 0.09558313]) * 100 >>> XYZ_to_UVW(XYZ) array([-28.0579733..., -0.8819449..., 37.0041149...])