reduceAsync function
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
Future<Mat> reduceAsync(InputArray src, int dim, int rtype, {OutputArray? dst, int dtype = -1}) async {
dst ??= Mat.empty();
return cvRunAsync0(
(callback) => ccore.cv_reduce(src.ref, dst!.ref, dim, rtype, dtype, callback),
(c) {
return c.complete(dst);
},
);
}