add function

Mat add(
  1. Mat src1,
  2. Mat src2, {
  3. Mat? dst,
  4. int dtype = -1,
  5. Mat? mask,
})

Add calculates the per-element sum of two arrays or an array and a scalar.

For further details, please see: https://docs.opencv.org/master/d2/de8/group__core__array.html#ga10ac1bfb180e2cfda1701d06c24fdbd6

Implementation

Mat add(Mat src1, Mat src2, {Mat? dst, int dtype = -1, Mat? mask}) {
  dst ??= Mat.empty();
  mask ??= Mat.empty();
  cvRun(() => ccore.Mat_Add(src1.ref, src2.ref, dst!.ref, mask!.ref, dtype));
  return dst;
}