reg_MapperGradAffine
import { reg_MapperGradAffine } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
Native object: release it with using or delete(). Factories can return null; check before calling methods. Inherits reg_Mapper.
Mapper for affine motion
Constructors and members
static new
Create an owned reg_MapperGradAffine object. Release native handles with using or delete().
new(): reg_MapperGradAffine;The reg_MapperGradAffine 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;The this result.
calculate
Calculate mapping between two images
calculate(img1: Mat, img2: Mat, init: reg_Map | null): reg_Map | null;2 available overloads
calculate(img1: Mat, img2: Mat): reg_Map | null;calculate(img1: Mat, img2: Mat, init: reg_Map | null): reg_Map | null;img1Reference image
img2Warped image
initinit argument (reg_Map | null).
Map from img1 to img2, stored in a smart pointer.
getMap
Returns a map compatible with the Mapper class
getMap(): reg_Map | null;Pointer to identity Map
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.