Skip to main content

Module gradient_flow

Module gradient_flow 

Source
Expand description

Gradient-based optical flow for video alignment.

Provides a simplified Lucas-Kanade style optical flow computation operating on blocks of grayscale pixels represented as f32 slices.

Structs§

FlowField
A dense optical flow field over a regular block grid.
FlowVector
A 2D flow vector with single-precision components.

Functions§

compute_flow_field
Compute a dense flow field for an entire frame using lucas_kanade_block.
lucas_kanade_block
Compute a simplified Lucas-Kanade style flow vector for a single block.