accumulateSquareAsync function

Future<Mat> accumulateSquareAsync(
  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#gacb75e7ffb573227088cef9ceaf80be8c

Implementation

Future<Mat> accumulateSquareAsync(InputArray src, InputOutputArray dst, {InputArray? mask}) async =>
    mask == null
        ? cvRunAsync0(
            (callback) => cffi.Mat_AccumulateSquare_Async(src.ref, dst.ref, callback),
            (c) => c.complete(dst),
          )
        : cvRunAsync0(
            (callback) => cffi.Mat_AccumulateSquareWithMask_Async(src.ref, dst.ref, mask.ref, callback),
            (c) => c.complete(dst),
          );