Skip to content

minEnclosingCircle

geometryfunctionOpenCV 5.0.0
import { minEnclosingCircle } from '@banou/opencv-wasm'

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

ARGUMENTSpoints
FUNCTIONminEnclosingCircle
RETURN TYPECircle
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Finds a circle of the minimum area enclosing a 2D point set.

The function finds the minimal enclosing circle of a 2D point set using an iterative algorithm.

minEnclosingCircle(points: Mat): Circle;
points

Input vector of 2D points, stored in std::vector<> or Mat

Returns

The Circle result.

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.