videolib.cvt_color.yuv2xyz

yuv2xyz(yuv, standard, range=None)[source]

Converts YUV to tristimulus XYZ. Performed using an intermediate conversion to BGR.

Parameters:
  • yuv (ndarray) – YUV array of shape (R, C, 3)

  • standard (Standard) – Color standard to which the data conforms.

  • range (Union[int, float, None]) – Range of pixel values (Default: None - inferred from standard).

Return type:

ndarray

Returns:

XYZ array of shape (R, C, 3)