Struct opencv::optflow::SparseRLOFOpticalFlow
source · pub struct SparseRLOFOpticalFlow { /* private fields */ }
Expand description
Class used for calculation sparse optical flow and feature tracking with robust local optical flow (RLOF) algorithms.
The RLOF is a fast local optical flow approach described in Senst2012 Senst2013 Senst2014 and Senst2016 similar to the pyramidal iterative Lucas-Kanade method as proposed by Bouguet00. More details and experiments can be found in the following thesis Senst2019. The implementation is derived from optflow::calcOpticalFlowPyrLK().
For the RLOF configuration see optflow::RLOFOpticalFlowParameter for further details. Parameters have been described in Senst2012, Senst2013, Senst2014 and Senst2016.
Note: SIMD parallelization is only available when compiling with SSE4.1.
See also
optflow::calcOpticalFlowSparseRLOF(), optflow::RLOFOpticalFlowParameter
Implementations§
source§impl SparseRLOFOpticalFlow
impl SparseRLOFOpticalFlow
sourcepub fn create(
rlof_param: Ptr<RLOFOpticalFlowParameter>,
forward_backward_threshold: f32
) -> Result<Ptr<SparseRLOFOpticalFlow>>
pub fn create( rlof_param: Ptr<RLOFOpticalFlowParameter>, forward_backward_threshold: f32 ) -> Result<Ptr<SparseRLOFOpticalFlow>>
Creates instance of SparseRLOFOpticalFlow
Parameters
- rlofParam: see setRLOFOpticalFlowParameter
- forwardBackwardThreshold: see setForwardBackward
C++ default parameters
- rlof_param: Ptr
() - forward_backward_threshold: 1.f
sourcepub fn create_def() -> Result<Ptr<SparseRLOFOpticalFlow>>
pub fn create_def() -> Result<Ptr<SparseRLOFOpticalFlow>>
Creates instance of SparseRLOFOpticalFlow
Parameters
- rlofParam: see setRLOFOpticalFlowParameter
- forwardBackwardThreshold: see setForwardBackward
Note
This alternative version of SparseRLOFOpticalFlow::create function uses the following default values for its arguments:
- rlof_param: Ptr
() - forward_backward_threshold: 1.f