inRangebyScalar function

Mat inRangebyScalar(
  1. InputArray src,
  2. Scalar lowerb,
  3. Scalar upperb, {
  4. OutputArray? dst,
})

InRangeWithScalar checks if array elements lie between the elements of two Scalars

For further details, please see: https://docs.opencv.org/master/d2/de8/group__core__array.html#ga48af0ab51e36436c5d04340e036ce981

Implementation

Mat inRangebyScalar(
  InputArray src,
  Scalar lowerb,
  Scalar upperb, {
  OutputArray? dst,
}) {
  dst ??= Mat.empty();
  cvRun(() => ccore.cv_inRange_1(src.ref, lowerb.ref, upperb.ref, dst!.ref, ffi.nullptr));
  return dst;
}