accumulateProduct function

Mat accumulateProduct(
  1. InputArray src1,
  2. InputArray src2,
  3. InputOutputArray dst, {
  4. 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(() => cffi.Mat_AccumulateProduct(src1.ref, src2.ref, dst.ref));
  } else {
    cvRun(() => cffi.Mat_AccumulateProductWithMask(src1.ref, src2.ref, dst.ref, mask.ref));
  }
  return dst;
}