[][src]Trait opencv::prelude::SparsePyrLKOpticalFlow

pub trait SparsePyrLKOpticalFlow: SparseOpticalFlow {
    pub fn as_raw_SparsePyrLKOpticalFlow(&self) -> *const c_void;
pub fn as_raw_mut_SparsePyrLKOpticalFlow(&mut self) -> *mut c_void; pub fn get_win_size(&self) -> Result<Size> { ... }
pub fn set_win_size(&mut self, win_size: Size) -> Result<()> { ... }
pub fn get_max_level(&self) -> Result<i32> { ... }
pub fn set_max_level(&mut self, max_level: i32) -> Result<()> { ... }
pub fn get_term_criteria(&self) -> Result<TermCriteria> { ... }
pub fn set_term_criteria(&mut self, crit: &mut TermCriteria) -> Result<()> { ... }
pub fn get_flags(&self) -> Result<i32> { ... }
pub fn set_flags(&mut self, flags: i32) -> Result<()> { ... }
pub fn get_min_eig_threshold(&self) -> Result<f64> { ... }
pub fn set_min_eig_threshold(
        &mut self,
        min_eig_threshold: f64
    ) -> Result<()> { ... } }

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

Loading content...

Provided methods

pub fn get_win_size(&self) -> Result<Size>[src]

pub fn set_win_size(&mut self, win_size: Size) -> Result<()>[src]

pub fn get_max_level(&self) -> Result<i32>[src]

pub fn set_max_level(&mut self, max_level: i32) -> Result<()>[src]

pub fn get_term_criteria(&self) -> Result<TermCriteria>[src]

pub fn set_term_criteria(&mut self, crit: &mut TermCriteria) -> Result<()>[src]

pub fn get_flags(&self) -> Result<i32>[src]

pub fn set_flags(&mut self, flags: i32) -> Result<()>[src]

pub fn get_min_eig_threshold(&self) -> Result<f64>[src]

pub fn set_min_eig_threshold(&mut self, min_eig_threshold: f64) -> Result<()>[src]

Loading content...

Implementations

impl<'_> dyn SparsePyrLKOpticalFlow + '_[src]

pub fn create(
    win_size: Size,
    max_level: i32,
    crit: TermCriteria,
    flags: i32,
    min_eig_threshold: f64
) -> Result<Ptr<dyn SparsePyrLKOpticalFlow>>
[src]

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

Implementors

Loading content...