colour.xy_to_XYZ

colour.xy_to_XYZ(xy)[source]

Returns the CIE XYZ tristimulus values from given xy chromaticity coordinates.

Parameters:xy (array_like) – xy chromaticity coordinates.
Returns:CIE XYZ tristimulus values.
Return type:ndarray

Notes

  • Input xy chromaticity coordinates are in domain [0, 1].
  • Output CIE XYZ tristimulus values are in range [0, 1].

References

Examples

>>> xy = np.array([0.26414772, 0.37770001])
>>> xy_to_XYZ(xy)  
array([ 0.6993585...,  1.        ,  0.9482453...])