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
srcInputArrayInput three-channel image in the BGR color space (either CV_8UC3 or CV_16UC3)
dstOutputArrayOutput image of the same size and type as src.
gainBfloatgain for the B channel
gainGfloatgain for the G channel
gainRfloatgain for the R channel