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.
cv2.phaseCorrelateIterative
- src1
- src2
- shift
◄L2size7►
◄maxIters10►
Categoryimage/CV/low-level/cv2 P
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| src1 | NPARRAY,IMAGE,MASK | Source 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. | |
| src2 | NPARRAY,IMAGE,MASK | Source 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. | |
| L2sizeopt | INT | 7-2147483648–2147483647 | The size of the correlation neighborhood used by the iterative shift refinement algorithm. Preset to the OpenCV default (7). |
| maxItersopt | INT | 10-2147483648–2147483647 | The 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)
| Name | Type | Description |
|---|---|---|
| shift | CV_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. |