accumulateSquare 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#gacb75e7ffb573227088cef9ceaf80be8c
Implementation
Mat accumulateSquare(InputArray src, InputOutputArray dst, {InputArray? mask}) {
if (mask == null) {
cvRun(() => cffi.Mat_AccumulateSquare(src.ref, dst.ref));
} else {
cvRun(() => cffi.Mat_AccumulateSquareWithMask(src.ref, dst.ref, mask.ref));
}
return dst;
}