colour.models.Yrg_to_LMS#

colour.models.Yrg_to_LMS(Yrg: ArrayLike) NDArrayFloat[source]#

Convert from Kirk (2019) Yrg colourspace to LMS colourspace.

Parameters:

Yrg (ArrayLike) – Kirk (2019) Yrg \(Yrg\) luminance, redness, and greenness.

Returns:

LMS colourspace values.

Return type:

numpy.ndarray

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

LMS

[0, 100]

[0, 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...])