Skip to content

DistanceTransformLabelTypes

Image processingclassOpenCV 5.0.0
import { DistanceTransformLabelTypes } from '@banou/opencv-wasm'

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

ARGUMENTSConstructor or factory
CLASSDistanceTransformLabelTypes
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.

distanceTransform algorithm flags

Constructors and members

static DIST_LABEL_CCOMP

each connected component of zeros in src (as well as all the non-zero pixels closest to the connected component) will be assigned the same label

DIST_LABEL_CCOMP: DistanceTransformLabelTypesValue<0>,

static DIST_LABEL_PIXEL

each zero pixel (and all the non-zero pixels closest to it) gets its own label.

DIST_LABEL_PIXEL: DistanceTransformLabelTypesValue<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.