Misc module

Color constancy

void lime::colorConstancy(cv::InputArray src, cv::OutputArray dst, int type)

Apply color constancy algorithm for the input image.

  • src: The input floating-point, 3-channel image.

  • dst: The destination image; will have also floating-point, 3-channel pixel values.

  • type: Algorithm type (see lime::ConstancyType ).

Python

dst = lime.colorConstancy(src, ftype)

Parameters

  • src - numpy.ndarray : The input floating-point, 3-channel image.

  • ftype - int : Chosen from lime::ConstancyType .

Returns
  • dst - numpy.ndarray : The destination image; will have also floating-point, 3-channel pixel values.

enum lime::ConstancyType

Color constancy algorithms.

Values:

CONSTANCY_HORN

Horm’s algorithm.

CONSTANCY_RAHMAN

Rahman’s algorithm.

CONSTANCY_FAUGERAS

Faugeras’s algorithm.