momentsAsync function
Moments calculates all of the moments up to the third order of a polygon or rasterized shape.
For further details, please see: https:///docs.opencv.org/master/d3/dc0/group__imgproc__shape.html#ga556a180f43cab22649c23ada36a8a139
Implementation
Future<Moments> momentsAsync(Mat src, {bool binaryImage = false}) async {
final m = calloc<cvg.Moment>();
return cvRunAsync0(
(callback) => cimgproc.cv_moments(src.ref, binaryImage, m, callback),
(c) {
return c.complete(Moments.fromPointer(m));
},
);
}