colour.XYZ_to_UVW#
- colour.XYZ_to_UVW(XYZ: Annotated[_Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | bytes | str | _NestedSequence[complex | bytes | str], 100], illuminant: ArrayLike = CCS_ILLUMINANTS['CIE 1931 2 Degree Standard Observer']['D65']) Annotated[ndarray[tuple[Any, ...], dtype[float16 | float32 | float64]], 100][source]#
Convert from CIE XYZ tristimulus values to CIE 1964 U*V*W* colourspace.
- Parameters:
XYZ (Annotated[_Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | bytes | str | _NestedSequence[complex | bytes | str], 100]) – CIE XYZ tristimulus values.
illuminant (ArrayLike) – Reference illuminant CIE xy chromaticity coordinates or CIE xyY colourspace array.
- Returns:
CIE 1964 U*V*W* colourspace array.
- Return type:
Notes
Domain
Scale - Reference
Scale - 1
XYZ100
1
illuminant1
1
Range
Scale - Reference
Scale - 1
UVW100
1
References
Examples
>>> import numpy as np >>> XYZ = np.array([0.20654008, 0.12197225, 0.05136952]) * 100 >>> XYZ_to_UVW(XYZ) array([94.5503572..., 11.5553652..., 40.5475740...])