phaseCorrelateIterative
import { phaseCorrelateIterative } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
Detects translational shifts between two images.
This function extends the standard phaseCorrelate method by improving sub-pixel accuracy
through iterative shift refinement in the phase-correlation space, as described in
[hrazdira2020iterative].
See: phaseCorrelate, dft, idft, createHanningWindow
phaseCorrelateIterative(src1: Mat, src2: Mat, L2size: number, maxIters: number): Point2d;3 available overloads
phaseCorrelateIterative(src1: Mat, src2: Mat): Point2d;phaseCorrelateIterative(src1: Mat, src2: Mat, L2size: number): Point2d;phaseCorrelateIterative(src1: Mat, src2: Mat, L2size: number, maxIters: number): Point2d;src1Source floating point array (CV_32FC1 or CV_64FC1)
src2Source floating point array (CV_32FC1 or CV_64FC1)
L2sizeThe size of the correlation neighborhood used by the iterative shift refinement algorithm.
maxItersThe maximum number of iterations the iterative refinement algorithm will run.
detected sub-pixel shift between the two arrays.
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.