accumulateAsync 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
Future<Mat> accumulateAsync(InputArray src, InputOutputArray dst, {InputArray? mask}) async {
if (mask == null) {
return cvRunAsync0(
(callback) => cimgproc.cv_accumulate(src.ref, dst.ref, callback),
(c) {
return c.complete(dst);
},
);
} else {
return cvRunAsync0(
(callback) => cimgproc.cv_accumulate_1(src.ref, dst.ref, mask.ref, callback),
(c) {
return c.complete(dst);
},
);
}
}