Nodes/comfyui_cv/cv2.batchDistance
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.

By bmad4ever·Created 3 months ago·Updated 2 days ago· 0
cv2.batchDistance
  • src1
  • src2
  • mask
  • dist
  • nidx
dtypesame as input
normTypeNORM_L2
K0
update0
crosscheckfalse
Categoryimage/CV/low-level/cv2 B

Inputs (8)

NameTypeDefaultDescription
src1NPARRAY - - - A data array (points / matrix), NOT an image - only an NPARRAY link is accepted here.
src2NPARRAY - - - A data array (points / matrix), NOT an image - only an NPARRAY link is accepted here.
dtypeCOMBOsame as input - - -
normTypeoptCOMBONORM_L2 - - -
KoptINT0-2147483648–2147483647 - - - Preset to the OpenCV default (0).
maskoptNPARRAY,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.
updateoptINT0-2147483648–2147483647 - - - Preset to the OpenCV default (0).
crosscheckoptBOOLEANfalse - - - Preset to the OpenCV default (False).

Outputs (2)

NameTypeDescription
distNPARRAY
nidxNPARRAY