[][src]Trait opencv::prelude::LMSolver_Callback

pub trait LMSolver_Callback {
    pub fn as_raw_LMSolver_Callback(&self) -> *const c_void;
pub fn as_raw_mut_LMSolver_Callback(&mut self) -> *mut c_void; pub fn compute(
        &self,
        param: &dyn ToInputArray,
        err: &mut dyn ToOutputArray,
        j: &mut dyn ToOutputArray
    ) -> Result<bool> { ... } }

Required methods

Loading content...

Provided methods

pub fn compute(
    &self,
    param: &dyn ToInputArray,
    err: &mut dyn ToOutputArray,
    j: &mut dyn ToOutputArray
) -> Result<bool>
[src]

computes error and Jacobian for the specified vector of parameters

Parameters

  • param: the current vector of parameters
  • err: output vector of errors: err_i = actual_f_i - ideal_f_i
  • J: output Jacobian: J_ij = d(err_i)/d(param_j)

when J=noArray(), it means that it does not need to be computed. Dimensionality of error vector and param vector can be different. The callback should explicitly allocate (with "create" method) each output array (unless it's noArray()).

Loading content...

Implementors

Loading content...