Table of Contents

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

src1 InputArray

The first source array

src2 InputArray

The second source array. It must have the same size and same type as src1

dst OutputArray

The destination array; it will have the same size and same type as src1

mask InputArray

The optional operation mask, 8-bit single channel array; specifies elements of the destination array to be changed. [By default this is skipped]

dtype int

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

src1 InputArray

The first source array

src2 Scalar

The second source array. It must have the same size and same type as src1

dst OutputArray

The destination array; it will have the same size and same type as src1

mask InputArray

The optional operation mask, 8-bit single channel array; specifies elements of the destination array to be changed. [By default this is skipped]

dtype int

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

src1 Scalar

The first source array

src2 InputArray

The second source array. It must have the same size and same type as src1

dst OutputArray

The destination array; it will have the same size and same type as src1

mask InputArray

The optional operation mask, 8-bit single channel array; specifies elements of the destination array to be changed. [By default this is skipped]

dtype int