Defines the CIE UCS colourspace transformations:
See also
References
[1] | Wikipedia. (n.d.). CIE 1960 color space. Retrieved February 24, 2014, from http://en.wikipedia.org/wiki/CIE_1960_color_space |
[2] | Wikipedia. (n.d.). Relation to CIE XYZ. Retrieved February 24, 2014, from http://en.wikipedia.org/wiki/CIE_1960_color_space#Relation_to_CIE_XYZ |
Converts from CIE XYZ colourspace to CIE UCS colourspace.
Parameters: | XYZ (array_like, (3,)) – CIE XYZ colourspace matrix. |
---|---|
Returns: | CIE UCS colourspace matrix. |
Return type: | ndarray, (3,) |
Notes
Examples
>>> XYZ = np.array([0.07049534, 0.1008, 0.09558313])
>>> XYZ_to_UCS(XYZ)
array([ 0.0469968..., 0.1008 , 0.1637439...])
Converts from CIE UCS colourspace to CIE XYZ colourspace.
Parameters: | UVW (array_like, (3,)) – CIE UCS colourspace matrix. |
---|---|
Returns: | CIE XYZ colourspace matrix. |
Return type: | ndarray, (3,) |
Notes
Examples
>>> UVW = np.array([0.04699689, 0.1008, 0.1637439])
>>> UCS_to_XYZ(UVW)
array([ 0.0704953..., 0.1008 , 0.0955831...])
Returns the uv chromaticity coordinates from given CIE UCS colourspace matrix.
Parameters: | UVW (array_like, (3,)) – CIE UCS colourspace matrix. |
---|---|
Returns: | uv chromaticity coordinates. |
Return type: | tuple |
Notes
Examples
>>> UCS = np.array([0.04699689, 0.1008, 0.1637439])
>>> UCS_to_uv(UCS)
(0.1508530..., 0.3235531...)
Returns the xy chromaticity coordinates from given CIE UCS colourspace uv chromaticity coordinates.
Parameters: | uv (array_like) – CIE UCS uv chromaticity coordinates. |
---|---|
Returns: | xy chromaticity coordinates. |
Return type: | tuple |
Notes
Examples
>>> uv = (0.15085308732766581, 0.3235531372954405)
>>> UCS_uv_to_xy(uv)
(0.2641477..., 0.3777000...)