Compares the corresponding elements of two arrays and fills the destination mask array: dst(I)=src1(I) op src2(I), dst(I) is set to 0xff (all '1'-bits) if the particular relation between the elements is true and 0 otherwise. All the arrays must have the same type, except the destination, and the same size (or ROI size)

Namespace:  Emgu.CV
Assembly:  Emgu.CV (in Emgu.CV.dll) Version: 2.1.0.649 (2.1.0.649)

Syntax

         
 C#  Visual Basic  Visual C++ 
public static void cvCmp(
	IntPtr src1,
	IntPtr src2,
	IntPtr dst,
	CMP_TYPE cmpOp
)
Public Shared Sub cvCmp ( _
	src1 As IntPtr, _
	src2 As IntPtr, _
	dst As IntPtr, _
	cmpOp As CMP_TYPE _
)
public:
static void cvCmp(
	IntPtr src1, 
	IntPtr src2, 
	IntPtr dst, 
	CMP_TYPE cmpOp
)

Parameters

src1
IntPtr
The first image to compare with
src2
IntPtr
The second image to comapare with
dst
IntPtr
dst(I) is set to 0xff (all '1'-bits) if the particular relation between the elements is true and 0 otherwise.
cmpOp
CMP_TYPE
The comparison operator type

See Also