Table of Contents

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

curve InputArray

The input vector of 2D points, represented by CV_32SC2 or CV_32FC2 matrix.

closed bool

Indicates, whether the curve is closed or not.

Returns

double

ArcLength(IEnumerable<Point>, bool)

Calculates a contour perimeter or a curve length.

public static double ArcLength(IEnumerable<Point> curve, bool closed)

Parameters

curve IEnumerable<Point>

The input vector of 2D points.

closed bool

Indicates, whether the curve is closed or not.

Returns

double

ArcLength(IEnumerable<Point2f>, bool)

Calculates a contour perimeter or a curve length.

public static double ArcLength(IEnumerable<Point2f> curve, bool closed)

Parameters

curve IEnumerable<Point2f>

The input vector of 2D points.

closed bool

Indicates, whether the curve is closed or not.

Returns

double