pub trait FarnebackOpticalFlow: DenseOpticalFlow + FarnebackOpticalFlowConst {
    fn as_raw_mut_FarnebackOpticalFlow(&mut self) -> *mut c_void;

    fn set_num_levels(&mut self, num_levels: i32) -> Result<()> { ... }
    fn set_pyr_scale(&mut self, pyr_scale: f64) -> Result<()> { ... }
    fn set_fast_pyramids(&mut self, fast_pyramids: bool) -> Result<()> { ... }
    fn set_win_size(&mut self, win_size: i32) -> Result<()> { ... }
    fn set_num_iters(&mut self, num_iters: i32) -> Result<()> { ... }
    fn set_poly_n(&mut self, poly_n: i32) -> Result<()> { ... }
    fn set_poly_sigma(&mut self, poly_sigma: f64) -> Result<()> { ... }
    fn set_flags(&mut self, flags: i32) -> Result<()> { ... }
}

Required Methods

Provided Methods

Implementations

C++ default parameters
  • num_levels: 5
  • pyr_scale: 0.5
  • fast_pyramids: false
  • win_size: 13
  • num_iters: 10
  • poly_n: 5
  • poly_sigma: 1.1
  • flags: 0

Implementors