| Cv2Subtract Method (InputArray, Scalar, 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(
InputArray src1,
Scalar src2,
OutputArray dst,
InputArray mask = null,
int dtype = -1
)
Public Shared Sub Subtract (
src1 As InputArray,
src2 As Scalar,
dst As OutputArray,
Optional mask As InputArray = Nothing,
Optional dtype As Integer = -1
)
public:
static void Subtract(
InputArray^ src1,
Scalar src2,
OutputArray^ dst,
InputArray^ mask = nullptr,
int dtype = -1
)
static member Subtract :
src1 : InputArray *
src2 : Scalar *
dst : OutputArray *
?mask : InputArray *
?dtype : int
(* Defaults:
let _mask = defaultArg mask null
let _dtype = defaultArg dtype -1
*)
-> unit
Parameters
- src1
- Type: OpenCvSharpInputArray
The first source array - src2
- Type: OpenCvSharpScalar
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.InputArray,OpenCvSharp.Scalar,OpenCvSharp.OutputArray,OpenCvSharp.InputArray,System.Int32)"]
See Also