Trait opencv::hub_prelude::SparsePyrLKOpticalFlow
source · pub trait SparsePyrLKOpticalFlow: SparseOpticalFlow + SparsePyrLKOpticalFlowConst {
// Required method
fn as_raw_mut_SparsePyrLKOpticalFlow(&mut self) -> *mut c_void;
// Provided methods
fn set_win_size(&mut self, win_size: Size) -> Result<()> { ... }
fn set_max_level(&mut self, max_level: i32) -> Result<()> { ... }
fn set_term_criteria(&mut self, crit: &mut TermCriteria) -> Result<()> { ... }
fn set_flags(&mut self, flags: i32) -> Result<()> { ... }
fn set_min_eig_threshold(&mut self, min_eig_threshold: f64) -> Result<()> { ... }
}
Expand description
Class used for calculating a sparse optical flow.
The class can calculate an optical flow for a sparse feature set using the iterative Lucas-Kanade method with pyramids.
See also
calcOpticalFlowPyrLK
Required Methods§
fn as_raw_mut_SparsePyrLKOpticalFlow(&mut self) -> *mut c_void
Provided Methods§
fn set_win_size(&mut self, win_size: Size) -> Result<()>
fn set_max_level(&mut self, max_level: i32) -> Result<()>
fn set_term_criteria(&mut self, crit: &mut TermCriteria) -> Result<()>
fn set_flags(&mut self, flags: i32) -> Result<()>
fn set_min_eig_threshold(&mut self, min_eig_threshold: f64) -> Result<()>
Implementations§
source§impl dyn SparsePyrLKOpticalFlow + '_
impl dyn SparsePyrLKOpticalFlow + '_
sourcepub fn create(
win_size: Size,
max_level: i32,
crit: TermCriteria,
flags: i32,
min_eig_threshold: f64
) -> Result<Ptr<dyn SparsePyrLKOpticalFlow>>
pub fn create( win_size: Size, max_level: i32, crit: TermCriteria, flags: i32, min_eig_threshold: f64 ) -> Result<Ptr<dyn SparsePyrLKOpticalFlow>>
C++ default parameters
- win_size: Size(21,21)
- max_level: 3
- crit: TermCriteria(TermCriteria::COUNT+TermCriteria::EPS,30,0.01)
- flags: 0
- min_eig_threshold: 1e-4