XYZ_normalized#

colorsynth.XYZ_normalized(XYZ, axis=-1)[source]#

Normalize the luminance of a vector in the CIE 1931 \(XYZ\) color space.

This function converts to the xyY color space, scales \(Y\) to 1, and then converts back into the XYZ color space

Parameters:
  • XYZ (ndarray) – color values in a CIE 1931 \(XYZ\) color space to be normalized

  • axis (int) – the axis along which the color space values are distributed