arcLength function

double arcLength(
  1. VecPoint 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 arcLength(VecPoint curve, bool closed) {
  return cvRunArena<double>((arena) {
    final p = arena<ffi.Double>();
    cvRun(() => cffi.ArcLength(curve.ref, closed, p));
    return p.value;
  });
}