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.
cv2.motempl.calcMotionGradient
- mhi
- mask
- nparray_0
- nparray_1
◄delta10.0000►
◄delta20.0000►
◄apertureSize3►
Categoryimage/CV/low-level/motempl
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| mhi | 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. | |
| delta1 | FLOAT | 0.0000-1e+38–1e+38 | - - - |
| delta2 | FLOAT | 0.0000-1e+38–1e+38 | - - - |
| 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. | |
| apertureSizeopt | INT | 3-2147483648–2147483647 | - - - Preset to the OpenCV default (3). |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| nparray_0 | NPARRAY | — |
| nparray_1 | NPARRAY | — |