ComfyUI Node
cv2.optflow.calcOpticalFlowSF (2/2)
Raw wrapper of cv2.optflow.calcOpticalFlowSF(from_, to, layers, averaging_block_size, max_flow, sigma_dist, sigma_color, postprocess_window, sigma_dist_fix, sigma_color_fix, occ_thr, upscale_averaging_radius, upscale_sigma_dist, upscale_sigma_color, speed_up_thr). Parameters marked '?' are optional; blank means OpenCV default. From the opencv-contrib 'optflow' module. See the OpenCV documentation for details.
cv2.optflow.calcOpticalFlowSF (2/2)
- from_
- to
- nparray
◄layers0►
◄averaging_block_size0►
◄max_flow0►
◄sigma_dist0.0000►
◄sigma_color0.0000►
◄postprocess_window0►
◄sigma_dist_fix0.0000►
◄sigma_color_fix0.0000►
◄occ_thr0.0000►
◄upscale_averaging_radius0►
◄upscale_sigma_dist0.0000►
◄upscale_sigma_color0.0000►
◄speed_up_thr0.0000►
Categoryimage/CV/low-level/optflow
Inputs (15)
| Name | Type | Default | Description |
|---|---|---|---|
| from_ | 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. | |
| to | 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. | |
| layers | INT | 0-2147483648–2147483647 | - - - |
| averaging_block_size | INT | 0-2147483648–2147483647 | - - - |
| max_flow | INT | 0-2147483648–2147483647 | - - - |
| sigma_dist | FLOAT | 0.0000-1e+38–1e+38 | - - - |
| sigma_color | FLOAT | 0.0000-1e+38–1e+38 | - - - |
| postprocess_window | INT | 0-2147483648–2147483647 | - - - |
| sigma_dist_fix | FLOAT | 0.0000-1e+38–1e+38 | - - - |
| sigma_color_fix | FLOAT | 0.0000-1e+38–1e+38 | - - - |
| occ_thr | FLOAT | 0.0000-1e+38–1e+38 | - - - |
| upscale_averaging_radius | INT | 0-2147483648–2147483647 | - - - |
| upscale_sigma_dist | FLOAT | 0.0000-1e+38–1e+38 | - - - |
| upscale_sigma_color | FLOAT | 0.0000-1e+38–1e+38 | - - - |
| speed_up_thr | FLOAT | 0.0000-1e+38–1e+38 | - - - |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| nparray | NPARRAY | — |