Skip to content

ximgproc_findEllipses

Extended image processingfunctionOpenCV 5.0.0
import { ximgproc_findEllipses } from '@banou/opencv-wasm'

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

ARGUMENTSimage, ellipses, scoreThreshold, reliabilityThreshold
FUNCTIONximgproc_findEllipses
RETURN TYPEvoid
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Finds ellipses fastly in an image using projective invariant pruning.

The function detects ellipses in images using projective invariant pruning. For more details about this implementation, please see [jia2017fast] Jia, Qi et al, (2017). A Fast Ellipse Detector using Projective Invariant Pruning. IEEE Transactions on Image Processing.

ximgproc_findEllipses(image: Mat, ellipses: Mat, scoreThreshold: number, reliabilityThreshold: number, centerDistanceThreshold: number): void;
4 available overloads
ximgproc_findEllipses(image: Mat, ellipses: Mat): void;
ximgproc_findEllipses(image: Mat, ellipses: Mat, scoreThreshold: number): void;
ximgproc_findEllipses(image: Mat, ellipses: Mat, scoreThreshold: number, reliabilityThreshold: number): void;
ximgproc_findEllipses(image: Mat, ellipses: Mat, scoreThreshold: number, reliabilityThreshold: number, centerDistanceThreshold: number): void;
image

input image, could be gray or color.

ellipses

Output destination, filled by the native operation. output vector of found ellipses. each vector is encoded as five float $x, y, a, b, radius, score$.

scoreThreshold

float, the threshold of ellipse score.

reliabilityThreshold

float, the threshold of reliability.

centerDistanceThreshold

float, the threshold of center distance.

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.