MorphShapes
import { MorphShapes } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
ARGUMENTSConstructor or factory
CLASSMorphShapes
RETURN TYPEOwned native handle
Native object: release it with using or delete(). Factories can return null; check before calling methods.
shape of the structuring element
Constructors and members
static MORPH_RECT
a rectangular structuring element:
E_{ij}=1
MORPH_RECT: MorphShapesValue<0>,static MORPH_CROSS
a cross-shaped structuring element:
MORPH_CROSS: MorphShapesValue<1>,static MORPH_ELLIPSE
an elliptic structuring element, that is, a filled ellipse inscribed
MORPH_ELLIPSE: MorphShapesValue<2>,static MORPH_DIAMOND
a diamond structuring element defined by Manhattan distance
MORPH_DIAMOND: MorphShapesValue<3>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.