Expand description
High-performance computer vision algorithms for real-time applications
Provides implementations of:
- Lucas-Kanade optical flow
- Shi-Tomasi feature detection
- Optimized image processing pipelines
Designed to be compatible with WebAssembly (Wasm).
Structs§
- Track
Result - Per-point result of
calc_optical_flow_ex. - Tracker
Context - Reusable owner of every buffer the tracking hot path touches: both frame pyramids, the Lucas-Kanade scratch, the result vector and the forward-backward intermediates.
Enums§
- Track
Status - Why a feature point ended up where it did after tracking.
Constants§
- DEFAULT_
FB_ THRESHOLD - Default forward-backward round-trip threshold (pixels) for
calc_optical_flow_fb. - DEFAULT_
MIN_ EIGEN_ THRESHOLD - Default minimum-eigenvalue threshold used by
calc_optical_flow.
Functions§
- build_
pyramid - Builds a pyramid of images where each successive layer is half as large in width and height
- build_
pyramid_ into - Builds the pyramid into an existing buffer, reusing each level’s storage when its dimensions are unchanged.
- calc_
optical_ flow Deprecated - Compute optical flow using the pyramidal Lucas-Kanade method.
- calc_
optical_ flow_ ex - Compute optical flow using the pyramidal Lucas-Kanade method, returning a
per-point
TrackResultwith status and photometric error. - calc_
optical_ flow_ fb - Track points prev->next, then re-track the results next->prev, and flag any
point whose round-trip lands further than
fb_thresholdpixels from where it started asTrackStatus::FbInconsistent. - good_
features_ to_ track - Finds good features points using the Shi-Tomasi algorithm
- good_
features_ to_ track_ grid - Finds good feature points with uniform frame coverage by detecting per grid cell, while respecting features that are already being tracked.