Nodes/comfyui_cv/cv2.phaseCorrelateIterative
ComfyUI Node

cv2.phaseCorrelateIterative

Raw wrapper of cv2.phaseCorrelateIterative(src1, src2, L2size?, maxIters?). Parameters marked '?' are optional; blank means OpenCV default. See the OpenCV documentation for details.

By bmad4ever·Created 3 months ago·Updated 2 days ago· 0
cv2.phaseCorrelateIterative
  • src1
  • src2
  • shift
L2size7
maxIters10
Categoryimage/CV/low-level/cv2 P

Inputs (4)

NameTypeDefaultDescription
src1NPARRAY,IMAGE,MASKSource floating point array (CV_32FC1 or CV_64FC1) Accepts a ComfyUI IMAGE/MASK directly (frame 0 of a batch) or an NPARRAY. Arithmetic ops (add, multiply, etc.) process the full IMAGE batch when both inputs have the same batch size.
src2NPARRAY,IMAGE,MASKSource floating point array (CV_32FC1 or CV_64FC1) Accepts a ComfyUI IMAGE/MASK directly (frame 0 of a batch) or an NPARRAY. Arithmetic ops (add, multiply, etc.) process the full IMAGE batch when both inputs have the same batch size.
L2sizeoptINT7-2147483648–2147483647The size of the correlation neighborhood used by the iterative shift refinement algorithm. Preset to the OpenCV default (7).
maxItersoptINT10-2147483648–2147483647The maximum number of iterations the iterative refinement algorithm will run. s detected sub-pixel shift between the two arrays. Preset to the OpenCV default (10).

Outputs (1)

NameTypeDescription
shiftCV_TUPLE- - - Subpixel coordinates (x, y) as ONE composite value - wire it straight into any cv2 point input, or into 'CV Split Tuple' for the separate numbers.