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.34567, 0.3585))[source]

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

Parameters:
  • XYZ (array_like, (3,)) – CIE XYZ colourspace matrix.
  • illuminant (array_like, optional) – Reference illuminant chromaticity coordinates.
Returns:

CIE 1964 U*V*W* colourspace matrix.

Return type:

ndarray, (3,)

Notes

  • Input CIE XYZ colourspace matrix is in domain [0, 100].
  • Output CIE UVW colourspace matrix is in domain [0, 100].

Warning

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

Examples

>>> XYZ = np.array([0.07049534, 0.1008, 0.09558313]) * 100
>>> XYZ_to_UVW(XYZ)  
array([-28.0483277...,  -0.8805242...,  37.0041149...])