Trait opencv::hub_prelude::FarnebackOpticalFlow
source · [−]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
fn as_raw_mut_FarnebackOpticalFlow(&mut self) -> *mut c_void
Provided Methods
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<()>
Implementations
sourceimpl dyn FarnebackOpticalFlow + '_
impl dyn FarnebackOpticalFlow + '_
sourcepub fn create(
num_levels: i32,
pyr_scale: f64,
fast_pyramids: bool,
win_size: i32,
num_iters: i32,
poly_n: i32,
poly_sigma: f64,
flags: i32
) -> Result<Ptr<dyn FarnebackOpticalFlow>>
pub fn create(
num_levels: i32,
pyr_scale: f64,
fast_pyramids: bool,
win_size: i32,
num_iters: i32,
poly_n: i32,
poly_sigma: f64,
flags: i32
) -> Result<Ptr<dyn FarnebackOpticalFlow>>
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