[][src]Trait opencv::cudaoptflow::prelude::CUDA_SparsePyrLKOpticalFlow

pub trait CUDA_SparsePyrLKOpticalFlow: CUDA_SparseOpticalFlow {
    pub fn as_raw_CUDA_SparsePyrLKOpticalFlow(&self) -> *const c_void;
pub fn as_raw_mut_CUDA_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_num_iters(&self) -> Result<i32> { ... }
pub fn set_num_iters(&mut self, iters: i32) -> Result<()> { ... }
pub fn get_use_initial_flow(&self) -> Result<bool> { ... }
pub fn set_use_initial_flow(&mut self, use_initial_flow: bool) -> 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

Note:

  • An example of the Lucas Kanade optical flow algorithm can be found at opencv_source_code/samples/gpu/pyrlk_optical_flow.cpp

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_num_iters(&self) -> Result<i32>[src]

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

pub fn get_use_initial_flow(&self) -> Result<bool>[src]

pub fn set_use_initial_flow(&mut self, use_initial_flow: bool) -> Result<()>[src]

Loading content...

Implementations

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

pub fn create(
    win_size: Size,
    max_level: i32,
    iters: i32,
    use_initial_flow: bool
) -> Result<Ptr<dyn CUDA_SparsePyrLKOpticalFlow>>
[src]

C++ default parameters

  • win_size: Size(21,21)
  • max_level: 3
  • iters: 30
  • use_initial_flow: false

Implementors

Loading content...