videolib.color_adaptation.cat02

cat02(xyz, xyz_white, D, FL)[source]

CAT02 Color Adaption Transform

Parameters:
  • xyz (ndarray) – Tristrimulus XYZ image to adapt.

  • xyz_white (ndarray) – White point to adapt input to.

  • D (float) – Degree of adaptation.

  • FL (float) – Luminance level adaptation factor.

Return type:

Tuple[ndarray, ndarray]

Returns:

Adapted LMS responses for image and white point.