moments 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
Moments moments(Mat src, {bool binaryImage = false}) {
final m = calloc<cvg.Moment>();
cvRun(() => cimgproc.cv_moments(src.ref, binaryImage, m, ffi.nullptr));
return Moments.fromPointer(m);
}