pub trait CUDA_SparsePyrLKOpticalFlow: CUDA_SparseOpticalFlow + CUDA_SparsePyrLKOpticalFlowConst {
// Required method
fn as_raw_mut_CUDA_SparsePyrLKOpticalFlow(&mut self) -> *mut c_void;
// Provided methods
fn set_win_size(&mut self, win_size: Size) -> Result<()> { ... }
fn set_max_level(&mut self, max_level: i32) -> Result<()> { ... }
fn set_num_iters(&mut self, iters: i32) -> Result<()> { ... }
fn set_use_initial_flow(&mut self, use_initial_flow: bool) -> Result<()> { ... }
}
Expand description
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§
fn as_raw_mut_CUDA_SparsePyrLKOpticalFlow(&mut self) -> *mut c_void
Provided Methods§
fn set_win_size(&mut self, win_size: Size) -> Result<()>
fn set_max_level(&mut self, max_level: i32) -> Result<()>
fn set_num_iters(&mut self, iters: i32) -> Result<()>
fn set_use_initial_flow(&mut self, use_initial_flow: bool) -> Result<()>
Implementations§
source§impl dyn CUDA_SparsePyrLKOpticalFlow + '_
impl dyn CUDA_SparsePyrLKOpticalFlow + '_
sourcepub fn create(
win_size: Size,
max_level: i32,
iters: i32,
use_initial_flow: bool
) -> Result<Ptr<dyn CUDA_SparsePyrLKOpticalFlow>>
pub fn create( win_size: Size, max_level: i32, iters: i32, use_initial_flow: bool ) -> Result<Ptr<dyn CUDA_SparsePyrLKOpticalFlow>>
C++ default parameters
- win_size: Size(21,21)
- max_level: 3
- iters: 30
- use_initial_flow: false