accumulateProductAsync function

Future<Mat> accumulateProductAsync(
  1. InputArray src1,
  2. InputArray src2,
  3. InputOutputArray dst, {
  4. InputArray? mask,
})

Adds the per-element product of two input images to the accumulator image.

For further details, please see: https:///docs.opencv.org/master/d7/df3/group__imgproc__motion.html#ga82518a940ecfda49460f66117ac82520

Implementation

Future<Mat> accumulateProductAsync(
  InputArray src1,
  InputArray src2,
  InputOutputArray dst, {
  InputArray? mask,
}) async =>
    mask == null
        ? cvRunAsync0(
            (callback) => cffi.Mat_AccumulateProduct_Async(src1.ref, src2.ref, dst.ref, callback),
            (c) => c.complete(dst),
          )
        : cvRunAsync0(
            (callback) =>
                cffi.Mat_AccumulateProductWithMask_Async(src1.ref, src2.ref, dst.ref, mask.ref, callback),
            (c) => c.complete(dst),
          );