Click or drag to resize

Cv2ColorChange Method

Given an original color image, two differently colored versions of this image can be mixed seamlessly. Multiplication factor is between 0.5 to 2.5.

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax
public static void ColorChange(
	InputArray src,
	InputArray mask,
	OutputArray dst,
	float redMul = 1f,
	float greenMul = 1f,
	float blueMul = 1f
)

Parameters

src
Type: OpenCvSharpInputArray
Input 8-bit 3-channel image.
mask
Type: OpenCvSharpInputArray
Input 8-bit 1 or 3-channel image.
dst
Type: OpenCvSharpOutputArray
Output image with the same size and type as src.
redMul (Optional)
Type: SystemSingle
R-channel multiply factor.
greenMul (Optional)
Type: SystemSingle
G-channel multiply factor.
blueMul (Optional)
Type: SystemSingle
B-channel multiply factor.
See Also