Skip to content

ellipse2Poly

Image processingfunctionOpenCV 5.0.0
import { ellipse2Poly } from '@banou/opencv-wasm'

Use after await initOpenCV(). See the initialization and named imports guide.

ARGUMENTScenter, axes, angle, arcStart
FUNCTIONellipse2Poly
RETURN TYPEvoid
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

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 #ellipse. If arcStart is greater than arcEnd, they are swapped.

ellipse2Poly(center: Point, axes: Size, angle: number, arcStart: number, arcEnd: number, delta: number, pts: PointVector): void;
center

Center of the arc.

axes

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

angle

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

arcStart

Starting angle of the elliptic arc in degrees.

arcEnd

Ending angle of the elliptic arc in degrees.

delta

Angle between the subsequent polyline vertices. It defines the approximation accuracy.

pts

Output destination, filled by the native operation. Output vector of polyline vertices.

These signatures describe this package. Upstream documentation can mention optional backends that are absent from this build. Check runtime compatibility before choosing a backend or file format.