Skip to content

DistanceTransformMasks

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

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

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

imgproc_transform

Mask size for distance transform

Constructors and members

static DIST_MASK_3

DistanceTransformMasks.DIST_MASK_3: mask=3

DIST_MASK_3: DistanceTransformMasksValue<3>,

static DIST_MASK_5

DistanceTransformMasks.DIST_MASK_5: mask=5

DIST_MASK_5: DistanceTransformMasksValue<5>,

static DIST_MASK_PRECISE

dist mask precise constant (0), defined by OpenCV for cv.

DIST_MASK_PRECISE: DistanceTransformMasksValue<0>

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.