divideAsync function

Future<Mat> divideAsync(
  1. InputArray src1,
  2. InputArray src2, {
  3. OutputArray? dst,
  4. double scale = 1,
  5. int dtype = -1,
})

Divide performs the per-element division on two arrays or an array and a scalar.

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

Implementation

Future<Mat> divideAsync(
  InputArray src1,
  InputArray src2, {
  OutputArray? dst,
  double scale = 1,
  int dtype = -1,
}) async {
  dst ??= Mat.empty();
  return cvRunAsync0(
    (callback) => ccore.cv_divide(src1.ref, src2.ref, dst!.ref, scale, dtype, callback),
    (c) {
      return c.complete(dst);
    },
  );
}