arcLength2f function

double arcLength2f(
  1. VecPoint2f curve,
  2. bool closed
)

ArcLength calculates a contour perimeter or a curve length.

For further details, please see:

https:///docs.opencv.org/master/d3/dc0/group__imgproc__shape.html#ga8d26483c636be6b35c3ec6335798a47c

Implementation

double arcLength2f(VecPoint2f curve, bool closed) {
  final p = calloc<ffi.Double>();
  cvRun(() => cimgproc.cv_arcLength2f(curve.ref, closed, p, ffi.nullptr));
  final rval = p.value;
  calloc.free(p);
  return rval;
}