http://www.emgu.com
Checks that image elements lie between two scalars

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

Syntax

C#
public Image<Gray, byte> InRange(
	TColor lower,
	TColor higher
)
Visual Basic
Public Function InRange ( _
	lower As TColor, _
	higher As TColor _
) As Image(Of Gray, Byte)
Visual C++
public:
Image<Gray, unsigned char>^ InRange(
	TColor lower, 
	TColor higher
)

Parameters

lower
Type: TColor
The inclusive lower limit of color value
higher
Type: TColor
The inclusive upper limit of color value

Return Value

res[i,j] = 255 if lower <= this[i,j] <= higher, 0 otherwise

See Also