Method InRange
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
InRange(InputArray, InputArray, InputArray, OutputArray)
Checks if array elements lie between the elements of two other arrays.
public static void InRange(InputArray src, InputArray lowerb, InputArray upperb, OutputArray dst)
Parameters
srcInputArrayfirst input array.
lowerbInputArrayinclusive lower boundary array or a scalar.
upperbInputArrayinclusive upper boundary array or a scalar.
dstOutputArrayoutput array of the same size as src and CV_8U type.
InRange(InputArray, Scalar, Scalar, OutputArray)
Checks if array elements lie between the elements of two other arrays.
public static void InRange(InputArray src, Scalar lowerb, Scalar upperb, OutputArray dst)
Parameters
srcInputArrayfirst input array.
lowerbScalarinclusive lower boundary array or a scalar.
upperbScalarinclusive upper boundary array or a scalar.
dstOutputArrayoutput array of the same size as src and CV_8U type.