Approximates an elliptic arc with a polyline
pts = cv.ellipse2Poly(center, axes)
[...] = cv.ellipse2Poly(..., 'OptionName', optionValue, ...)
Input
- center Center of the arc
[x,y]
.
- axes Half of the size of the ellipse main axes
[a,b]
. See cv.ellipse
for details.
Output
- pts Output vector of polyline vertices. A cell-array of 2-element
vector
{[x,y], ...}
.
Options
- Angle Rotation angle of the ellipse in degrees. See cv.ellipse for
details. default 0.
- StartAngle Starting angle of the elliptic arc in degrees. default 0
- EndAngle Ending angle of the elliptic arc in degrees. default 360
- Delta Angle between the subsequent polyline vertices. It defines the
approximation accuracy. default 5.
The function cv.ellipse2Poly computes the vertices of a polyline that
approximates the specified elliptic arc. It is used by cv.ellipse.