mul method

Mat mul(
  1. Mat other, {
  2. bool inplace = false,
  3. double scale = 1.0,
})

Performs an element-wise multiplication or division of the two matrices.

The method returns a temporary object encoding per-element array multiplication, with optional scale. Note that this is not a matrix multiplication that corresponds to a simpler "*" operator.

https://docs.opencv.org/4.x/d3/d63/classcv_1_1Mat.html#a385c09827713dc3e6d713bfad8460706

Implementation

Mat mul(Mat other, {bool inplace = false, double scale = 1.0}) {
  final p = inplace ? ptr : calloc<ccore.Mat>();
  cvRun(() => ccore.Mat_Mul(ref, other.ref, p, scale));
  return inplace ? this : Mat._(p);
}