Skip to content

reg_MapTypeCaster

regclassOpenCV 5.0.0
import { reg_MapTypeCaster } from '@banou/opencv-wasm'

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

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

Converts a pointer to a Map returned by MapperPyramid::calculate into the specified Map pointer type

Constructors and members

static toAffine

Cast a native registration map to the Affine map interface. The input must contain that map implementation; dispose the returned handle.

toAffine(sourceMap: reg_Map | null): reg_MapAffine | null;
sourceMap

source map argument (reg_Map | null).

Returns

The reg_MapAffine | null result.

static toProjec

Cast a native registration map to the Projec map interface. The input must contain that map implementation; dispose the returned handle.

toProjec(sourceMap: reg_Map | null): reg_MapProjec | null;
sourceMap

source map argument (reg_Map | null).

Returns

The reg_MapProjec | null result.

static toShift

Cast a native registration map to the Shift map interface. The input must contain that map implementation; dispose the returned handle.

toShift(sourceMap: reg_Map | null): reg_MapShift | null;
sourceMap

source map argument (reg_Map | null).

Returns

The reg_MapShift | null result.

clone

Create another handle to the same native object. This retains the object without copying its pixels or algorithm state; dispose both handles separately.

clone(): this;
Returns

The this result.

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.