Nodes/comfyui_cv/cv2.motempl.calcMotionGradient
ComfyUI Node

cv2.motempl.calcMotionGradient

Raw wrapper of cv2.motempl.calcMotionGradient(mhi, delta1, delta2, mask?, apertureSize?). Parameters marked '?' are optional; blank means OpenCV default. From the opencv-contrib 'motempl' module. See the OpenCV documentation for details.

By bmad4ever·Created 3 months ago·Updated 2 days ago· 0
cv2.motempl.calcMotionGradient
  • mhi
  • mask
  • nparray_0
  • nparray_1
delta10.0000
delta20.0000
apertureSize3
Categoryimage/CV/low-level/motempl

Inputs (5)

NameTypeDefaultDescription
mhiNPARRAY,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.
delta1FLOAT0.0000-1e+38–1e+38 - - -
delta2FLOAT0.0000-1e+38–1e+38 - - -
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.
apertureSizeoptINT3-2147483648–2147483647 - - - Preset to the OpenCV default (3).

Outputs (2)

NameTypeDescription
nparray_0NPARRAY
nparray_1NPARRAY