[][src]Trait opencv::video::VariationalRefinement

pub trait VariationalRefinement: DenseOpticalFlow {
    fn as_raw_VariationalRefinement(&self) -> *mut c_void;

    fn calc_uv(
        &mut self,
        i0: &dyn ToInputArray,
        i1: &dyn ToInputArray,
        flow_u: &mut dyn ToInputOutputArray,
        flow_v: &mut dyn ToInputOutputArray
    ) -> Result<()> { ... }
fn get_fixed_point_iterations(&self) -> Result<i32> { ... }
fn set_fixed_point_iterations(&mut self, val: i32) -> Result<()> { ... }
fn get_sor_iterations(&self) -> Result<i32> { ... }
fn set_sor_iterations(&mut self, val: i32) -> Result<()> { ... }
fn get_omega(&self) -> Result<f32> { ... }
fn set_omega(&mut self, val: f32) -> Result<()> { ... }
fn get_alpha(&self) -> Result<f32> { ... }
fn set_alpha(&mut self, val: f32) -> Result<()> { ... }
fn get_delta(&self) -> Result<f32> { ... }
fn set_delta(&mut self, val: f32) -> Result<()> { ... }
fn get_gamma(&self) -> Result<f32> { ... }
fn set_gamma(&mut self, val: f32) -> Result<()> { ... } }

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: inline formula, where inline formula are color constancy, gradient constancy and smoothness terms respectively. inline formula 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

Loading content...

Provided methods

fn calc_uv(
    &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

Loading content...

Methods

impl<'_> dyn VariationalRefinement + '_[src]

pub fn create() -> Result<PtrOfVariationalRefinement>[src]

Creates an instance of VariationalRefinement

Implementors

Loading content...