colour.models.Yrg_to_LMS#
- colour.models.Yrg_to_LMS(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 LMS cone fundamentals colourspace.
- 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:
LMS cone fundamentals colourspace values.
- Return type:
Notes
Domain
Scale - Reference
Scale - 1
Yrg1
1
Range
Scale - Reference
Scale - 1
LMS1
1
References
[Kir19]
Examples
>>> import numpy as np >>> Yrg = np.array([0.13137801, 0.49037644, 0.37777391]) >>> Yrg_to_LMS(Yrg) array([ 0.1563929..., 0.0674150..., 0.0328213...])