pub trait VariationalRefinement: DenseOpticalFlow + VariationalRefinementConst {
    fn as_raw_mut_VariationalRefinement(&mut 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 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<()> { ... } }

Required Methods§

Provided Methods§

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

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

See also

setFixedPointIterations getFixedPointIterations

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

See also

setSorIterations getSorIterations

Relaxation factor in SOR

See also

setOmega getOmega

Weight of the smoothness term

See also

setAlpha getAlpha

Weight of the color constancy term

See also

setDelta getDelta

Weight of the gradient constancy term

See also

setGamma getGamma

Implementations§

Creates an instance of VariationalRefinement

Implementors§