Table of Contents

Method Ellipse2Poly

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

Ellipse2Poly(Point, Size, int, int, int, int)

Approximates an elliptic arc with a polyline. The function ellipse2Poly computes the vertices of a polyline that approximates the specified elliptic arc. It is used by cv::ellipse.

public static Point[] Ellipse2Poly(Point center, Size axes, int angle, int arcStart, int arcEnd, int delta)

Parameters

center Point

Center of the arc.

axes Size

Half of the size of the ellipse main axes. See the ellipse for details.

angle int

Rotation angle of the ellipse in degrees. See the ellipse for details.

arcStart int

Starting angle of the elliptic arc in degrees.

arcEnd int

Ending angle of the elliptic arc in degrees.

delta int

Angle between the subsequent polyline vertices. It defines the approximation

Returns

Point[]

Output vector of polyline vertices.

Ellipse2Poly(Point2d, Size2d, int, int, int, int)

Approximates an elliptic arc with a polyline. The function ellipse2Poly computes the vertices of a polyline that approximates the specified elliptic arc. It is used by cv::ellipse.

public static Point2d[] Ellipse2Poly(Point2d center, Size2d axes, int angle, int arcStart, int arcEnd, int delta)

Parameters

center Point2d

Center of the arc.

axes Size2d

Half of the size of the ellipse main axes. See the ellipse for details.

angle int

Rotation angle of the ellipse in degrees. See the ellipse for details.

arcStart int

Starting angle of the elliptic arc in degrees.

arcEnd int

Ending angle of the elliptic arc in degrees.

delta int

Angle between the subsequent polyline vertices. It defines the approximation

Returns

Point2d[]

Output vector of polyline vertices.