reg_MapperPyramid
import { reg_MapperPyramid } 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.
Calculates a map using a gaussian pyramid
Constructors and members
static new
reg_MapperPyramid.new: Constructor
new(baseMapper: reg_Mapper | null): reg_MapperPyramid;baseMapperBase mapper used for the refinements
The reg_MapperPyramid 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.
numLev_
Number of levels of the pyramid
numLev_: number;numIterPerScale_
Number of iterations at a given scale of the pyramid
numIterPerScale_: number;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.