Skip to content

phaseCorrelateIterative

Image processingfunctionOpenCV 5.0.0
import { phaseCorrelateIterative } from '@banou/opencv-wasm'

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

ARGUMENTSsrc1, src2, L2size, maxIters
FUNCTIONphaseCorrelateIterative
RETURN TYPEPoint2d
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

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;
src1

Source floating point array (CV_32FC1 or CV_64FC1)

src2

Source floating point array (CV_32FC1 or CV_64FC1)

L2size

The size of the correlation neighborhood used by the iterative shift refinement algorithm.

maxIters

The maximum number of iterations the iterative refinement algorithm will run.

Returns

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.