colour.Yrg_to_XYZ#
- colour.Yrg_to_XYZ(Yrg: ArrayLike) NDArrayFloat [source]#
Convert from Kirk (2019) Yrg colourspace to CIE XYZ tristimulus values.
- Parameters:
Yrg (ArrayLike) – Kirk (2019) Yrg \(Yrg\) luminance, redness, and greenness.
- Returns:
CIE XYZ tristimulus values values.
- Return type:
Notes
Domain
Scale - Reference
Scale - 1
Yrg
Y
: [0, 1]r
: [0, 1]g
: [0, 1]Y
: [0, 1]r
: [0, 1]g
: [0, 1]Range
Scale - Reference
Scale - 1
XYZ
[0, 100]
[0, 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...])