ComfyUI Node
cv2.batchDistance
Raw wrapper of cv2.batchDistance(src1, src2, dtype, normType?, K?, mask?, update?, crosscheck?). Parameters marked '?' are optional; blank means OpenCV default. See the OpenCV documentation for details.
cv2.batchDistance
- src1
- src2
- mask
- dist
- nidx
◄dtypesame as input►
◄normTypeNORM_L2►
◄K0►
◄update0►
◄crosscheckfalse►
Categoryimage/CV/low-level/cv2 B
Inputs (8)
| Name | Type | Default | Description |
|---|---|---|---|
| src1 | NPARRAY | - - - A data array (points / matrix), NOT an image - only an NPARRAY link is accepted here. | |
| src2 | NPARRAY | - - - A data array (points / matrix), NOT an image - only an NPARRAY link is accepted here. | |
| dtype | COMBO | same as input | - - - |
| normTypeopt | COMBO | NORM_L2 | - - - |
| Kopt | INT | 0-2147483648–2147483647 | - - - Preset to the OpenCV default (0). |
| maskopt | NPARRAY,IMAGE,MASK | - - - 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. | |
| updateopt | INT | 0-2147483648–2147483647 | - - - Preset to the OpenCV default (0). |
| crosscheckopt | BOOLEAN | false | - - - Preset to the OpenCV default (False). |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| dist | NPARRAY | — |
| nidx | NPARRAY | — |