Skip to content

MSTAlgorithm

geometryclassOpenCV 5.0.0
import { MSTAlgorithm } from '@banou/opencv-wasm'

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

ARGUMENTSConstructor or factory
CLASSMSTAlgorithm
RETURN TYPEOwned native handle
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Native object: release it with using or delete(). Factories can return null; check before calling methods.

Represents the algorithms available for building a Minimum Spanning Tree (MST).

More algorithms may be added in the future.

Constructors and members

static MST_PRIM

mst prim constant (0), defined by OpenCV for cv.

MST_PRIM: MSTAlgorithmValue<0>,

static MST_KRUSKAL

mst kruskal constant (1), defined by OpenCV for cv.

MST_KRUSKAL: MSTAlgorithmValue<1>

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.