This function compare the current matrix with mat2 and returns the comparison mask

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

Syntax

         
 C#  Visual Basic  Visual C++ 
public Matrix<byte> Cmp(
	Matrix<TDepth> mat2,
	CMP_TYPE type
)
Public Function Cmp ( _
	mat2 As Matrix(Of TDepth), _
	type As CMP_TYPE _
) As Matrix(Of Byte)
public:
Matrix<unsigned char>^ Cmp(
	Matrix<TDepth>^ mat2, 
	CMP_TYPE type
)

Parameters

mat2
Matrix<(Of <(<'TDepth>)>)>
The other matrix to compare with
type
CMP_TYPE
Comparison type

Return Value

The comparison mask

See Also