Trait opencv::optflow::SparseRLOFOpticalFlow [−][src]
pub trait SparseRLOFOpticalFlow: SparseRLOFOpticalFlowConst + SparseOpticalFlow {
fn as_raw_mut_SparseRLOFOpticalFlow(&mut self) -> *mut c_void;
fn set_rlof_optical_flow_parameter(
&mut self,
val: Ptr<RLOFOpticalFlowParameter>
) -> Result<()> { ... }
fn set_forward_backward(&mut self, val: f32) -> Result<()> { ... }
}
Required methods
fn as_raw_mut_SparseRLOFOpticalFlow(&mut self) -> *mut c_void
Provided methods
fn set_rlof_optical_flow_parameter(
&mut self,
val: Ptr<RLOFOpticalFlowParameter>
) -> Result<()>
fn set_rlof_optical_flow_parameter(
&mut self,
val: Ptr<RLOFOpticalFlowParameter>
) -> Result<()>
@copydoc DenseRLOFOpticalFlow::setRLOFOpticalFlowParameter
fn set_forward_backward(&mut self, val: f32) -> Result<()>
fn set_forward_backward(&mut self, val: f32) -> Result<()>
Threshold for the forward backward confidence check
For each feature point a motion vector is computed.
* If the forward backward error
* is larger than threshold given by this function then the status will not be used by the following
* vector field interpolation.
denotes the backward flow. Note, the forward backward test
* will only be applied if the threshold > 0. This may results into a doubled runtime for the motion estimation.
* see also: setForwardBackward
Implementations
pub fn create(
rlof_param: Ptr<RLOFOpticalFlowParameter>,
forward_backward_threshold: f32
) -> Result<Ptr<dyn SparseRLOFOpticalFlow>>
pub fn create(
rlof_param: Ptr<RLOFOpticalFlowParameter>,
forward_backward_threshold: f32
) -> Result<Ptr<dyn SparseRLOFOpticalFlow>>
Creates instance of SparseRLOFOpticalFlow
Parameters
- rlofParam: see setRLOFOpticalFlowParameter
- forwardBackwardThreshold: see setForwardBackward
C++ default parameters
- rlof_param: Ptr
() - forward_backward_threshold: 1.f