Performs range check for every element of the input array: dst(I)=lower(I)_0 <= src(I)_0 < upper(I)_0 For single-channel arrays, dst(I)=lower(I)_0 <= src(I)_0 < upper(I)_0 && lower(I)_1 <= src(I)_1 < upper(I)_1 For two-channel arrays etc. dst(I) is set to 0xff (all '1'-bits) if src(I) is within the range 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.2.1.1150 (2.2.1.1150)

Syntax

         
 C#  Visual Basic  Visual C++ 
public static void cvInRange(
	IntPtr src,
	IntPtr lower,
	IntPtr upper,
	IntPtr dst
)
Public Shared Sub cvInRange ( _
	src As IntPtr, _
	lower As IntPtr, _
	upper As IntPtr, _
	dst As IntPtr _
)
public:
static void cvInRange(
	IntPtr src, 
	IntPtr lower, 
	IntPtr upper, 
	IntPtr dst
)

Parameters

src
IntPtr
The source image
lower
IntPtr
The lower values stored in an image of same type & size as src
upper
IntPtr
The upper values stored in an image of same type & size as src
dst
IntPtr
The resulting mask

See Also