Skip to content

ConnectedComponentsTypes

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

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

ARGUMENTSConstructor or factory
CLASSConnectedComponentsTypes
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_misc

connected components statistics

Constructors and members

static CC_STAT_LEFT

The leftmost (x) coordinate which is the inclusive start of the bounding

CC_STAT_LEFT: ConnectedComponentsTypesValue<0>,

static CC_STAT_TOP

The topmost (y) coordinate which is the inclusive start of the bounding

CC_STAT_TOP: ConnectedComponentsTypesValue<1>,

static CC_STAT_WIDTH

The horizontal size of the bounding box

CC_STAT_WIDTH: ConnectedComponentsTypesValue<2>,

static CC_STAT_HEIGHT

The vertical size of the bounding box

CC_STAT_HEIGHT: ConnectedComponentsTypesValue<3>,

static CC_STAT_AREA

The total area (in pixels) of the connected component

CC_STAT_AREA: ConnectedComponentsTypesValue<4>,

static CC_STAT_MAX

Max enumeration value. Used internally only for memory allocation

CC_STAT_MAX: ConnectedComponentsTypesValue<5>

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.