videolib.cvt_color.bgr2hdrucs

bgr2hdrucs(bgr, standard, three_channel='euclidean')[source]

Converts BGR to uniform color space designed for HDR (aka Jzazbz).

Parameters:
  • bgr (ndarray) – BGR array of shape (R, C, 3)

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

  • three_channel (Optional[str]) – Values to be returned. must be none (all values), ‘chroma_euclidean’, ‘color_euclidean’, or ‘ucs_color_euclidean’.

Return type:

Union[ndarray, Tuple]

Returns:

Array or tuple of HDR-UCS outputs.