OpenCvSharp.Cv2.ArcLength C# (CSharp) Method

ArcLength() public static method

Calculates a contour perimeter or a curve length.
public static ArcLength ( IEnumerable curve, bool closed ) : double
curve IEnumerable The input vector of 2D points.
closed bool Indicates, whether the curve is closed or not.
return double
        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

Same methods

Cv2::ArcLength ( IEnumerable curve, bool closed ) : double
Cv2::ArcLength ( InputArray curve, bool closed ) : double
Cv2