Cv2InRange Method (InputArray, Scalar, Scalar, OutputArray) OpenCvSharp Class Library
set mask elements for those array elements which are within the element-specific bounding box (dst = lowerb <= src && src < upperb)

Namespace:  OpenCvSharp.CPlusPlus
Assembly:  OpenCvSharp.CPlusPlus (in OpenCvSharp.CPlusPlus.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public static void InRange(
	InputArray src,
	Scalar lowerb,
	Scalar upperb,
	OutputArray dst
)

Parameters

src
Type: OpenCvSharp.CPlusPlusInputArray
The first source array
lowerb
Type: OpenCvSharp.CPlusPlusScalar
The inclusive lower boundary array of the same size and type as src
upperb
Type: OpenCvSharp.CPlusPlusScalar
The exclusive upper boundary array of the same size and type as src
dst
Type: OpenCvSharp.CPlusPlusOutputArray
The destination array, will have the same size as src and CV_8U type
See Also

Reference