addAsync function

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

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? mask, int dtype = -1}) async => cvRunAsync(
      (callback) => cffi.core_Add_Async(src1.ref, src2.ref, mask?.ref ?? Mat.empty().ref, dtype, callback),
      matCompleter,
    );