colour.XYZ_to_Luv

colour.XYZ_to_Luv(XYZ, illuminant=array([ 0.3127, 0.329 ]))[source]

Converts from CIE XYZ tristimulus values to CIE L*u*v* colourspace.

Parameters:
  • XYZ (array_like) – CIE XYZ tristimulus values.
  • illuminant (array_like, optional) – Reference illuminant CIE xy chromaticity coordinates or CIE xyY colourspace array.
Returns:

CIE L*u*v* colourspace array.

Return type:

ndarray

Notes

Domain Scale - Reference Scale - 1
XYZ [0, 1] [0, 1]
illuminant [0, 1] [0, 1]
Range Scale - Reference Scale - 1
Luv

L : [0, 100]

u : [-100, 100]

v : [-100, 100]

L : [0, 1]

u : [-1, 1]

v : [-1, 1]

References

[CIETC1-482004m], [Wikipedia2007b]

Examples

>>> XYZ = np.array([0.20654008, 0.12197225, 0.05136952])
>>> XYZ_to_Luv(XYZ)  # doctest: +ELLIPSIS
array([ 41.5278752...,  96.8362605...,  17.7521014...])