Trait VariationalRefinementTrait

Source
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<()> { ... }
    fn set_epsilon(&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

Source

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

Norm value shift for robust penalizer

§See also

setEpsilon getEpsilon

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§