Skip to content

VariableType

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

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

ARGUMENTSConstructor or factory
CLASSVariableType
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 variables used in LevMarq solver

Variables can be linear, rotation (SO(3) group) or rigid transformation (SE(3) group) with corresponding jacobians and exponential updates.

Note: only linear variables are now supported

Constructors and members

static LINEAR

linear constant (0), defined by OpenCV for cv::VariableType.

LINEAR: VariableTypeValue<0>,

static SO3

so3 constant (1), defined by OpenCV for cv::VariableType.

SO3: VariableTypeValue<1>,

static SE3

se3 constant (2), defined by OpenCV for cv::VariableType.

SE3: VariableTypeValue<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.