Click or drag to resize

CvXPhotoApplyChannelGains Method

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

Namespace:  OpenCvSharp.XPhoto
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax
public static void ApplyChannelGains(
	InputArray src,
	OutputArray dst,
	float gainB,
	float gainG,
	float gainR
)

Parameters

src
Type: OpenCvSharpInputArray
Input three-channel image in the BGR color space (either CV_8UC3 or CV_16UC3)
dst
Type: OpenCvSharpOutputArray
Output image of the same size and type as src.
gainB
Type: SystemSingle
gain for the B channel
gainG
Type: SystemSingle
gain for the G channel
gainR
Type: SystemSingle
gain for the R channel
See Also