Skip to content

DecompTypes

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

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

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

matrix decomposition types

Constructors and members

static DECOMP_LU

Gaussian elimination with the optimal pivot element chosen.

DECOMP_LU: DecompTypesValue<0>,

static DECOMP_SVD

singular value decomposition (SVD) method; the system can be over-defined and/or the matrix src1 can be singular

DECOMP_SVD: DecompTypesValue<1>,

static DECOMP_EIG

eigenvalue decomposition; the matrix src1 must be symmetrical

DECOMP_EIG: DecompTypesValue<2>,

static DECOMP_CHOLESKY

Cholesky LL^T factorization; the matrix src1 must be symmetrical and positively defined

DECOMP_CHOLESKY: DecompTypesValue<3>,

static DECOMP_QR

QR factorization; the system can be over-defined and/or the matrix src1 can be singular

DECOMP_QR: DecompTypesValue<4>,

static DECOMP_NORMAL

while all the previous flags are mutually exclusive, this flag can be used together with any of the previous; it means that the normal equations \texttt{src1}^T\cdot\texttt{src1}\cdot\texttt{dst}=\texttt{src1}^T\texttt{src2} are solved instead of the original system \texttt{src1}\cdot\texttt{dst}=\texttt{src2}

DECOMP_NORMAL: DecompTypesValue<16>

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.