Lucas Canade Optical Flow and Shi-Tomasi feature detection on Rust
High-performance Rust implementation of Lucas-Kanade optical flow and Shi-Tomasi feature detection, optimized for real-time applications and WebAssembly (Wasm) compatibility.
Features
- 🔍 Efficient feature point detection using Shi-Tomasi
- 🖼️ Integration with
imageandimageproccrates - 🌐 WebAssembly (Wasm) compatible
Usage
Add to your Cargo.toml:
[]
= "0.1"
Basic example:
use ;
use ;
let prev_frame: GrayImage = open.unwrap.clone.into_luma8;
let next_frame: GrayImage = open.unwrap.clone.into_luma8;
let prev_frame_pyr = build_pyramid;
let next_frame_pyr = build_pyramid;
let mut points = good_features_to_track;
points.truncate;
let prev_points: = points.iter.map.collect;
let next_points = calc_optical_flow;