Click or drag to resize

Cv2Compare Method

Performs the per-element comparison of two arrays or an array and scalar value.

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax
public static void Compare(
	InputArray src1,
	InputArray src2,
	OutputArray dst,
	CmpTypes cmpop
)

Parameters

src1
Type: OpenCvSharpInputArray
first input array or a scalar; when it is an array, it must have a single channel.
src2
Type: OpenCvSharpInputArray
second input array or a scalar; when it is an array, it must have a single channel.
dst
Type: OpenCvSharpOutputArray
output array of type ref CV_8U that has the same size and the same number of channels as the input arrays.
cmpop
Type: OpenCvSharpCmpTypes
a flag, that specifies correspondence between the arrays (cv::CmpTypes)
See Also