ImageTColor, TDepthInRange Method (ImageTColor, TDepth, ImageTColor, TDepth) |
http://www.emgu.comChecks that image elements lie between values defined by two images of same size and type
Namespace: Emgu.CVAssembly: Emgu.CV.World (in Emgu.CV.World.dll) Version: 3.1.0.2282 (3.1.0.2282)
Syntaxpublic Image<Gray, byte> InRange(
Image<TColor, TDepth> lower,
Image<TColor, TDepth> higher
)
Public Function InRange (
lower As Image(Of TColor, TDepth),
higher As Image(Of TColor, TDepth)
) As Image(Of Gray, Byte)
public:
Image<Gray, unsigned char>^ InRange(
Image<TColor, TDepth>^ lower,
Image<TColor, TDepth>^ higher
)
member InRange :
lower : Image<'TColor, 'TDepth> *
higher : Image<'TColor, 'TDepth> -> Image<Gray, byte>
Parameters
- lower
- Type: Emgu.CVImageTColor, TDepth
The inclusive lower limit of color value - higher
- Type: Emgu.CVImageTColor, TDepth
The inclusive upper limit of color value
Return Value
Type:
ImageGray,
Byte res[i,j] = 255 if
lower[i,j] <= this[i,j] <=
higher[i,j], 0 otherwise
See Also