pub trait VariationalRefinementTrait: DenseOpticalFlowTrait + VariationalRefinementTraitConst {
    // Required method
    fn as_raw_mut_VariationalRefinement(&mut self) -> *mut c_void;

    // Provided methods
    fn calc_uv(
        &mut self,
        i0: &impl ToInputArray,
        i1: &impl ToInputArray,
        flow_u: &mut impl ToInputOutputArray,
        flow_v: &mut impl ToInputOutputArray
    ) -> Result<()> { ... }
    fn set_fixed_point_iterations(&mut self, val: i32) -> Result<()> { ... }
    fn set_sor_iterations(&mut self, val: i32) -> Result<()> { ... }
    fn set_omega(&mut self, val: f32) -> Result<()> { ... }
    fn set_alpha(&mut self, val: f32) -> Result<()> { ... }
    fn set_delta(&mut self, val: f32) -> Result<()> { ... }
    fn set_gamma(&mut self, val: f32) -> Result<()> { ... }
}
Expand description

Required Methods§

Provided Methods§

source

fn calc_uv( &mut self, i0: &impl ToInputArray, i1: &impl ToInputArray, flow_u: &mut impl ToInputOutputArray, flow_v: &mut impl ToInputOutputArray ) -> Result<()>

[calc] function overload to handle separate horizontal (u) and vertical (v) flow components (to avoid extra splits/merges)

source

fn set_fixed_point_iterations(&mut self, val: i32) -> Result<()>

Number of outer (fixed-point) iterations in the minimization procedure.

See also

setFixedPointIterations getFixedPointIterations

source

fn set_sor_iterations(&mut self, val: i32) -> Result<()>

Number of inner successive over-relaxation (SOR) iterations in the minimization procedure to solve the respective linear system.

See also

setSorIterations getSorIterations

source

fn set_omega(&mut self, val: f32) -> Result<()>

Relaxation factor in SOR

See also

setOmega getOmega

source

fn set_alpha(&mut self, val: f32) -> Result<()>

Weight of the smoothness term

See also

setAlpha getAlpha

source

fn set_delta(&mut self, val: f32) -> Result<()>

Weight of the color constancy term

See also

setDelta getDelta

source

fn set_gamma(&mut self, val: f32) -> Result<()>

Weight of the gradient constancy term

See also

setGamma getGamma

Implementors§