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.0.1.0 (2.0.1.0)

Syntax

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

Parameters

mat2
Type: Emgu.CV..::.Matrix<(Of <(TDepth>)>)
The other matrix to compare with
type
Type: Emgu.CV.CvEnum..::.CMP_TYPE
Comparison type

Return Value

The comparison mask

See Also