Method ArcLength
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
ArcLength(InputArray, bool)
Calculates a contour perimeter or a curve length.
public static double ArcLength(InputArray curve, bool closed)
Parameters
curveInputArrayThe input vector of 2D points, represented by CV_32SC2 or CV_32FC2 matrix.
closedboolIndicates, whether the curve is closed or not.
Returns
ArcLength(IEnumerable<Point>, bool)
Calculates a contour perimeter or a curve length.
public static double ArcLength(IEnumerable<Point> curve, bool closed)
Parameters
curveIEnumerable<Point>The input vector of 2D points.
closedboolIndicates, whether the curve is closed or not.
Returns
ArcLength(IEnumerable<Point2f>, bool)
Calculates a contour perimeter or a curve length.
public static double ArcLength(IEnumerable<Point2f> curve, bool closed)
Parameters
curveIEnumerable<Point2f>The input vector of 2D points.
closedboolIndicates, whether the curve is closed or not.