| 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
)
Public Shared Sub Subtract (
src1 As Scalar,
src2 As InputArray,
dst As OutputArray,
Optional mask As InputArray = Nothing,
Optional dtype As Integer = -1
)
public:
static void Subtract(
Scalar src1,
InputArray^ src2,
OutputArray^ dst,
InputArray^ mask = nullptr,
int dtype = -1
)
static member Subtract :
src1 : Scalar *
src2 : InputArray *
dst : OutputArray *
?mask : InputArray *
?dtype : int
(* Defaults:
let _mask = defaultArg mask null
let _dtype = defaultArg dtype -1
*)
-> unit
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