accumulateAsync function

Future<Mat> accumulateAsync(
  1. InputArray src,
  2. InputOutputArray dst, {
  3. InputArray? mask,
})

Adds the square of a source image to the accumulator image.

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

Implementation

Future<Mat> accumulateAsync(InputArray src, InputOutputArray dst, {InputArray? mask}) async => mask == null
    ? cvRunAsync0(
        (callback) => cimgproc.Mat_Accumulate_Async(src.ref, dst.ref, callback), (c) => c.complete(dst))
    : cvRunAsync0(
        (callback) => cimgproc.Mat_AccumulateWithMask_Async(src.ref, dst.ref, mask.ref, callback),
        (c) => c.complete(dst),
      );