accumulateProduct function
Mat
accumulateProduct(
- InputArray src1,
- InputArray src2,
- InputOutputArray dst, {
- InputArray? mask,
Adds the per-element product of two input images to the accumulator image.
For further details, please see: https:///docs.opencv.org/master/d7/df3/group__imgproc__motion.html#ga82518a940ecfda49460f66117ac82520
Implementation
Mat accumulateProduct(InputArray src1, InputArray src2, InputOutputArray dst, {InputArray? mask}) {
if (mask == null) {
cvRun(() => cimgproc.cv_accumulateProduct(src1.ref, src2.ref, dst.ref, ffi.nullptr));
} else {
cvRun(() => cimgproc.cv_accumulateProduct_1(src1.ref, src2.ref, dst.ref, mask.ref, ffi.nullptr));
}
return dst;
}