videolib.cvt_color.bgr2xyz

bgr2xyz(bgr, standard, range=None)[source]

Converts BGR to tristimulus XYZ.

Parameters:
  • bgr (ndarray) – BGR 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)