Compares the corresponding elements of array and scalar and fills the destination mask array: dst(I)=src(I) op scalar, where op is '=', '>', '>=', '<', '<=' or '!='. 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 size (or ROI size)

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 static void cvCmpS(
	IntPtr src,
	double value,
	IntPtr dst,
	CMP_TYPE cmpOp
)
Public Shared Sub cvCmpS ( _
	src As IntPtr, _
	value As Double, _
	dst As IntPtr, _
	cmpOp As CMP_TYPE _
)
public:
static void cvCmpS(
	IntPtr src, 
	double value, 
	IntPtr dst, 
	CMP_TYPE cmpOp
)

Parameters

src
IntPtr
The source array, must have a single channel
value
Double
The scalar value to compare each array element with
dst
IntPtr
The destination array, must have 8u or 8s type
cmpOp
CMP_TYPE
The flag specifying the relation between the elements to be checked

See Also