reduce function

Mat reduce(
  1. InputArray src,
  2. int dim,
  3. int rtype, {
  4. OutputArray? dst,
  5. int dtype = -1,
})

Reduce reduces a matrix to a vector.

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

Implementation

Mat reduce(InputArray src, int dim, int rtype, {OutputArray? dst, int dtype = -1}) {
  dst ??= Mat.empty();
  cvRun(() => cffi.Mat_Reduce(src.ref, dst!.ref, dim, rtype, dtype));
  return dst;
}