pub trait LMSolver_CallbackTraitConst {
// Required method
fn as_raw_LMSolver_Callback(&self) -> *const c_void;
// Provided method
fn compute(
&self,
param: &impl ToInputArray,
err: &mut impl ToOutputArray,
j: &mut impl ToOutputArray,
) -> Result<bool> { ... }
}
Expand description
Constant methods for crate::calib3d::LMSolver_Callback
Required Methods§
fn as_raw_LMSolver_Callback(&self) -> *const c_void
Provided Methods§
Sourcefn compute(
&self,
param: &impl ToInputArray,
err: &mut impl ToOutputArray,
j: &mut impl ToOutputArray,
) -> Result<bool>
fn compute( &self, param: &impl ToInputArray, err: &mut impl ToOutputArray, j: &mut impl ToOutputArray, ) -> Result<bool>
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(ideal_f_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()).
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.