Skip to content

CmpTypes

Core and matricesclassOpenCV 5.0.0
import { CmpTypes } from '@banou/opencv-wasm'

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

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

comparison types

Constructors and members

static CMP_EQ

src1 is equal to src2.

CMP_EQ: CmpTypesValue<0>,

static CMP_GT

src1 is greater than src2.

CMP_GT: CmpTypesValue<1>,

static CMP_GE

src1 is greater than or equal to src2.

CMP_GE: CmpTypesValue<2>,

static CMP_LT

src1 is less than src2.

CMP_LT: CmpTypesValue<3>,

static CMP_LE

src1 is less than or equal to src2.

CMP_LE: CmpTypesValue<4>,

static CMP_NE

src1 is unequal to src2.

CMP_NE: CmpTypesValue<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.