Table of Contents

Method ApplyChannelGains

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

ApplyChannelGains(InputArray, OutputArray, float, float, float)

Implements an efficient fixed-point approximation for applying channel gains, which is the last step of multiple white balance algorithms.

public static void ApplyChannelGains(InputArray src, OutputArray dst, float gainB, float gainG, float gainR)

Parameters

src InputArray

Input three-channel image in the BGR color space (either CV_8UC3 or CV_16UC3)

dst OutputArray

Output image of the same size and type as src.

gainB float

gain for the B channel

gainG float

gain for the G channel

gainR float

gain for the R channel