colour.models.cie_uvw Module

CIE UVW Colourspace

Defines the CIE U*V*W* colourspace transformations:

References

[1]Wikipedia. (n.d.). CIE 1964 color space. Retrieved June 10, 2014, from http://en.wikipedia.org/wiki/CIE_1964_color_space
colour.models.cie_uvw.XYZ_to_UVW(XYZ, illuminant=(0.3457, 0.3585))[source]

Converts from CIE XYZ tristimulus values to CIE 1964 U*V*W* colourspace.

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

CIE 1964 U*V*W* colourspace array.

Return type:

ndarray

Notes

  • Input CIE XYZ tristimulus values are in domain [0, 100].
  • Input illuminant xy chromaticity coordinates or CIE xyY colourspace array are in domain [0, \(\infty\)].
  • Output CIE UVW colourspace array is in range [0, 100].

Warning

The input / output domains of that definition are non standard!

Examples

>>> import numpy as np
>>> XYZ = np.array([0.07049534, 0.10080000, 0.09558313]) * 100
>>> XYZ_to_UVW(XYZ)  
array([-28.0579733...,  -0.8819449...,  37.0041149...])