Click or drag to resize

Cv2Subtract Method (Scalar, InputArray, OutputArray, InputArray, Int32)

Calculates per-element difference between two arrays or array and a scalar

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax
public static void Subtract(
	Scalar src1,
	InputArray src2,
	OutputArray dst,
	InputArray mask = null,
	int dtype = -1
)

Parameters

src1
Type: OpenCvSharpScalar
The first source array
src2
Type: OpenCvSharpInputArray
The second source array. It must have the same size and same type as src1
dst
Type: OpenCvSharpOutputArray
The destination array; it will have the same size and same type as src1
mask (Optional)
Type: OpenCvSharpInputArray
The optional operation mask, 8-bit single channel array; specifies elements of the destination array to be changed. [By default this is null]
dtype (Optional)
Type: SystemInt32

[Missing <param name="dtype"/> documentation for "M:OpenCvSharp.Cv2.Subtract(OpenCvSharp.Scalar,OpenCvSharp.InputArray,OpenCvSharp.OutputArray,OpenCvSharp.InputArray,System.Int32)"]

See Also