colour.Yrg_to_XYZ#
- colour.Yrg_to_XYZ(Yrg: Annotated[_Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | bytes | str | _NestedSequence[complex | bytes | str], 1]) Annotated[ndarray[tuple[Any, ...], dtype[float16 | float32 | float64]], 1][source]#
Convert from Kirk (2019) Yrg colourspace to CIE XYZ tristimulus values.
- Parameters:
Yrg (Annotated[_Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | bytes | str | _NestedSequence[complex | bytes | str], 1]) – Kirk (2019) Yrg colourspace array with \(Y\) luminance, \(r\) redness, and \(g\) greenness components.
- Returns:
CIE XYZ tristimulus values.
- Return type:
Notes
Domain
Scale - Reference
Scale - 1
Yrg1
1
Range
Scale - Reference
Scale - 1
XYZ1
1
References
[Kir19]
Examples
>>> import numpy as np >>> Yrg = np.array([0.13137801, 0.49037645, 0.37777388]) >>> Yrg_to_XYZ(Yrg) array([0.2065468..., 0.1219717..., 0.0513819...])