Does the range check for every element of the input array: dst(I)=lower0 <= src(I)0 < upper0 for a single-channel array, dst(I)=lower0 <= src(I)0 < upper0 && lower1 <= src(I)1 < upper1 for a two-channel array 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 size (or ROI size)

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

Syntax

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

Parameters

src
IntPtr
The first source array
lower
MCvScalar
The inclusive lower boundary
upper
MCvScalar
The exclusive upper boundary
dst
IntPtr
The destination array, must have 8u or 8s type

See Also