ellipse2Poly
import { ellipse2Poly } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
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;centerCenter of the arc.
axesHalf of the size of the ellipse main axes. See #ellipse for details.
angleRotation angle of the ellipse in degrees. See #ellipse for details.
arcStartStarting angle of the elliptic arc in degrees.
arcEndEnding angle of the elliptic arc in degrees.
deltaAngle between the subsequent polyline vertices. It defines the approximation accuracy.
ptsOutput 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.