http://www.emgu.com
Checks that image elements lie between values defined by two images of same size and type

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

Syntax

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

Parameters

lower
Type: Emgu.CV..::..Image<(Of <(<'TColor, TDepth>)>)>
The inclusive lower limit of color value
higher
Type: Emgu.CV..::..Image<(Of <(<'TColor, TDepth>)>)>
The inclusive upper limit of color value

Return Value

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

See Also