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.10.1935 (2.4.10.1935)

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
)
F#
member InRange : 
        lower : 'TColor * 
        higher : 'TColor -> Image<Gray, byte> 

Parameters

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

Return Value

Type: Image<(Of <(<'Gray, Byte>)>)>
res[i,j] = 255 if lower <= this[i,j] <= higher, 0 otherwise

See Also