accumulateWeightedAsync function
        
Future<Mat> 
accumulateWeightedAsync(
    
- InputArray src,
- InputOutputArray dst,
- double alpha, {
- InputArray? mask,
Updates a running average.
For further details, please see: https:///docs.opencv.org/master/d7/df3/group__imgproc__motion.html#ga4f9552b541187f61f6818e8d2d826bc7
Implementation
Future<Mat> accumulateWeightedAsync(
  InputArray src,
  InputOutputArray dst,
  double alpha, {
  InputArray? mask,
}) async {
  if (mask == null) {
    return cvRunAsync0((callback) => cimgproc.cv_accumulatedWeighted(src.ref, dst.ref, alpha, callback), (c) {
      return c.complete(dst);
    });
  } else {
    return cvRunAsync0(
      (callback) => cimgproc.cv_accumulatedWeighted_1(src.ref, dst.ref, alpha, mask.ref, callback),
      (c) {
        return c.complete(dst);
      },
    );
  }
}