scaleAdd function

Mat scaleAdd(
  1. InputArray src1,
  2. double alpha,
  3. InputArray src2, {
  4. OutputArray? dst,
})

Calculates the sum of a scaled array and another array.

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

Implementation

Mat scaleAdd(InputArray src1, double alpha, InputArray src2, {OutputArray? dst}) {
  dst ??= Mat.empty();
  cvRun(() => cffi.Mat_ScaleAdd(src1.ref, alpha, src2.ref, dst!.ref));
  return dst;
}