inRangebyScalarAsync function

Future<Mat> inRangebyScalarAsync(
  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

Future<Mat> inRangebyScalarAsync(
  InputArray src,
  Scalar lowerb,
  Scalar upperb, {
  OutputArray? dst,
}) async {
  dst ??= Mat.empty();
  return cvRunAsync0(
    (callback) => ccore.cv_inRange_1(src.ref, lowerb.ref, upperb.ref, dst!.ref, callback),
    (c) {
      return c.complete(dst);
    },
  );
}