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
Mutable methods for crate::video::VariationalRefinement
Required Methods§
fn as_raw_mut_VariationalRefinement(&mut self) -> *mut c_void
Provided Methods§
Sourcefn calc_uv(
&mut self,
i0: &impl ToInputArray,
i1: &impl ToInputArray,
flow_u: &mut impl ToInputOutputArray,
flow_v: &mut impl ToInputOutputArray,
) -> Result<()>
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)
Sourcefn set_fixed_point_iterations(&mut self, val: i32) -> Result<()>
fn set_fixed_point_iterations(&mut self, val: i32) -> Result<()>
Number of outer (fixed-point) iterations in the minimization procedure.
§See also
setFixedPointIterations getFixedPointIterations
Sourcefn set_sor_iterations(&mut self, val: i32) -> Result<()>
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
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.