public static double ArcLength(IEnumerable<Point2f> curve, bool closed) { if (curve == null) throw new ArgumentNullException(nameof(curve)); Point2f[] curveArray = EnumerableEx.ToArray(curve); return NativeMethods.imgproc_arcLength_Point2f(curveArray, curveArray.Length, closed ? 1 : 0); } #endregion