Trait opencv::prelude::CUDA_FarnebackOpticalFlow
source · pub trait CUDA_FarnebackOpticalFlow: CUDA_DenseOpticalFlow + CUDA_FarnebackOpticalFlowConst {
// Required method
fn as_raw_mut_CUDA_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<()> { ... }
}
Expand description
Class computing a dense optical flow using the Gunnar Farneback’s algorithm.
Required Methods§
fn as_raw_mut_CUDA_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§
source§impl dyn CUDA_FarnebackOpticalFlow + '_
impl dyn CUDA_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 CUDA_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 CUDA_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