| template | NPARRAY,IMAGE | | Reference image the other one is aligned TO. 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. |
| image | NPARRAY,IMAGE | | Image to align onto the template. 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. |
| motion_type | COMBO | MOTION_EUCLIDEAN | Transform model to estimate: TRANSLATION (2 dof), EUCLIDEAN (shift + rotation, 3 dof), AFFINE (6 dof) or HOMOGRAPHY (8 dof, 3x3). Fewer degrees of freedom converge more reliably. |
| iterations | INT | 1001–5000 | Maximum ECC refinement iterations. |
| epsilon | FLOAT | 0.00000–1 | Stop when the correlation improves by less than this between iterations (smaller = more precise, slower). |
| gauss_filt_size | INT | 51–101 | Odd size of the Gaussian blur applied internally before matching - smooths noise so the optimization does not chase it. 1 = no smoothing. |
| min_correlation | FLOAT | 0.00-1–1 | Minimum final ECC correlation for 'found' to be true (1 = perfect). 0 accepts any converged estimate; raise it to reject dubious alignments. |
| maskopt | NPARRAY,MASK | | Optional mask on the IMAGE being aligned: non-zero pixels participate in the alignment. 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. |