[−][src]Trait opencv::video::VariationalRefinement
Variational optical flow refinement
This class implements variational refinement of the input flow field, i.e. it uses input flow to initialize the minimization of the following functional: , where are color constancy, gradient constancy and smoothness terms respectively. is a robust penalizer to limit the influence of outliers. A complete formulation and a description of the minimization procedure can be found in Brox2004
Required methods
fn as_raw_VariationalRefinement(&self) -> *mut c_void
Provided methods
fn calc_uv(
&mut self,
i0: &dyn ToInputArray,
i1: &dyn ToInputArray,
flow_u: &mut dyn ToInputOutputArray,
flow_v: &mut dyn ToInputOutputArray
) -> Result<()>
&mut self,
i0: &dyn ToInputArray,
i1: &dyn ToInputArray,
flow_u: &mut dyn ToInputOutputArray,
flow_v: &mut dyn ToInputOutputArray
) -> Result<()>
@ref calc function overload to handle separate horizontal (u) and vertical (v) flow components (to avoid extra splits/merges)
fn get_fixed_point_iterations(&self) -> Result<i32>
Number of outer (fixed-point) iterations in the minimization procedure. @see setFixedPointIterations
fn set_fixed_point_iterations(&mut self, val: i32) -> Result<()>
@copybrief getFixedPointIterations @see getFixedPointIterations
fn get_sor_iterations(&self) -> Result<i32>
Number of inner successive over-relaxation (SOR) iterations in the minimization procedure to solve the respective linear system. @see setSorIterations
fn set_sor_iterations(&mut self, val: i32) -> Result<()>
@copybrief getSorIterations @see getSorIterations
fn get_omega(&self) -> Result<f32>
Relaxation factor in SOR @see setOmega
fn set_omega(&mut self, val: f32) -> Result<()>
@copybrief getOmega @see getOmega
fn get_alpha(&self) -> Result<f32>
Weight of the smoothness term @see setAlpha
fn set_alpha(&mut self, val: f32) -> Result<()>
@copybrief getAlpha @see getAlpha
fn get_delta(&self) -> Result<f32>
Weight of the color constancy term @see setDelta
fn set_delta(&mut self, val: f32) -> Result<()>
@copybrief getDelta @see getDelta
fn get_gamma(&self) -> Result<f32>
Weight of the gradient constancy term @see setGamma
fn set_gamma(&mut self, val: f32) -> Result<()>
@copybrief getGamma @see getGamma
Methods
impl<'_> dyn VariationalRefinement + '_
[src]
pub fn create() -> Result<PtrOfVariationalRefinement>
[src]
Creates an instance of VariationalRefinement