Trait opencv::hub_prelude::LMSolver_CallbackConst[][src]

pub trait LMSolver_CallbackConst {
    fn as_raw_LMSolver_Callback(&self) -> *const c_void;

    fn compute(
        &self,
        param: &dyn ToInputArray,
        err: &mut dyn ToOutputArray,
        j: &mut dyn ToOutputArray
    ) -> Result<bool> { ... } }

Required methods

Provided methods

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()).

Implementors