Method Subtract
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
Subtract(InputArray, InputArray, OutputArray, InputArray, int)
Calculates per-element difference between two arrays or array and a scalar
public static void Subtract(InputArray src1, InputArray src2, OutputArray dst, InputArray mask = default, int dtype = -1)
Parameters
src1InputArrayThe first source array
src2InputArrayThe second source array. It must have the same size and same type as src1
dstOutputArrayThe destination array; it will have the same size and same type as src1
maskInputArrayThe optional operation mask, 8-bit single channel array; specifies elements of the destination array to be changed. [By default this is skipped]
dtypeint
Subtract(InputArray, Scalar, OutputArray, InputArray, int)
Calculates per-element difference between two arrays or array and a scalar
public static void Subtract(InputArray src1, Scalar src2, OutputArray dst, InputArray mask = default, int dtype = -1)
Parameters
src1InputArrayThe first source array
src2ScalarThe second source array. It must have the same size and same type as src1
dstOutputArrayThe destination array; it will have the same size and same type as src1
maskInputArrayThe optional operation mask, 8-bit single channel array; specifies elements of the destination array to be changed. [By default this is skipped]
dtypeint
Subtract(Scalar, InputArray, OutputArray, InputArray, int)
Calculates per-element difference between two arrays or array and a scalar
public static void Subtract(Scalar src1, InputArray src2, OutputArray dst, InputArray mask = default, int dtype = -1)
Parameters
src1ScalarThe first source array
src2InputArrayThe second source array. It must have the same size and same type as src1
dstOutputArrayThe destination array; it will have the same size and same type as src1
maskInputArrayThe optional operation mask, 8-bit single channel array; specifies elements of the destination array to be changed. [By default this is skipped]
dtypeint