addAsync function

Future<Mat> addAsync(
  1. Mat src1,
  2. Mat src2, {
  3. Mat? dst,
  4. int dtype = -1,
  5. Mat? mask,
})

Add calculates the per-element sum of two arrays or an array and a scalar.

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

Implementation

Future<Mat> addAsync(Mat src1, Mat src2, {Mat? dst, int dtype = -1, Mat? mask}) async {
  dst ??= Mat.empty();
  mask ??= Mat.empty();
  return cvRunAsync0(
    (callback) => ccore.cv_add(src1.ref, src2.ref, dst!.ref, mask!.ref, dtype, callback),
    (c) {
      return c.complete(dst);
    },
  );
}