ComfyUI Node
cv2.computeECC
Raw wrapper of cv2.computeECC(templateImage, inputImage, inputMask?). Parameters marked '?' are optional; blank means OpenCV default. See the OpenCV documentation for details.
cv2.computeECC
- templateImage
- inputImage
- inputMask
- float
Categoryimage/CV/low-level/cv2 C
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| templateImage | NPARRAY,IMAGE,MASK | Input template image; must have either 1 or 3 channels and be of type CV_8U, CV_16U, CV_32F, or CV_64F. 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. | |
| inputImage | NPARRAY,IMAGE,MASK | Input image to be compared with the template; must have the same type and number of channels as templateImage. 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. | |
| inputMaskopt | NPARRAY,IMAGE,MASK | Optional single-channel mask to specify the valid region of interest in inputImage and templateImage. 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. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| float | FLOAT | — |