Skip to content

MatrixType

geometryclassOpenCV 5.0.0
import { MatrixType } from '@banou/opencv-wasm'

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

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

Type of matrix used in LevMarq solver

Matrix type can be dense, sparse or chosen automatically based on a matrix size, performance considerations or backend availability.

Note: only dense matrix is now supported

Constructors and members

static AUTO

auto constant (0), defined by OpenCV for cv::MatrixType.

AUTO: MatrixTypeValue<0>,

static DENSE

dense constant (1), defined by OpenCV for cv::MatrixType.

DENSE: MatrixTypeValue<1>,

static SPARSE

sparse constant (2), defined by OpenCV for cv::MatrixType.

SPARSE: MatrixTypeValue<2>

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.