subtractAsync function

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

Subtract calculates the per-element subtraction 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#gaa0f00d98b4b5edeaeb7b8333b2de353b

Implementation

Future<Mat> subtractAsync(
  InputArray src1,
  InputArray src2, {
  InputArray? mask,
  int dtype = -1,
}) async =>
    cvRunAsync(
      (callback) =>
          cffi.core_Subtract_Async(src1.ref, src2.ref, mask?.ref ?? Mat.empty().ref, dtype, callback),
      matCompleter,
    );