Trait LMSolverTraitConst

Source
pub trait LMSolverTraitConst: AlgorithmTraitConst {
    // Required method
    fn as_raw_LMSolver(&self) -> *const c_void;

    // Provided methods
    fn run(&self, param: &mut impl ToInputOutputArray) -> Result<i32> { ... }
    fn get_max_iters(&self) -> Result<i32> { ... }
}
Expand description

Constant methods for crate::calib3d::LMSolver

Required Methods§

Provided Methods§

Source

fn run(&self, param: &mut impl ToInputOutputArray) -> Result<i32>

Runs Levenberg-Marquardt algorithm using the passed vector of parameters as the start point. The final vector of parameters (whether the algorithm converged or not) is stored at the same vector. The method returns the number of iterations used. If it’s equal to the previously specified maxIters, there is a big chance the algorithm did not converge.

§Parameters
  • param: initial/final vector of parameters.

Note that the dimensionality of parameter space is defined by the size of param vector, and the dimensionality of optimized criteria is defined by the size of err vector computed by the callback.

Source

fn get_max_iters(&self) -> Result<i32>

Retrieves the current maximum number of iterations

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§