accumulate function
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
Mat accumulate(InputArray src, InputOutputArray dst, {InputArray? mask}) {
if (mask == null) {
cvRun(() => cffi.Mat_Accumulate(src.ref, dst.ref));
} else {
cvRun(() => cffi.Mat_AccumulateWithMask(src.ref, dst.ref, mask.ref));
}
return dst;
}