OpenCV  4.1.1-pre
Open Source Computer Vision
Looking for a C++ dev who knows OpenCV?
I'm looking for work. Hire me!
cv::LMSolver::Callback Class Referenceabstract

#include <opencv2/calib3d.hpp>

Public Member Functions

virtual ~Callback ()
 
virtual bool compute (InputArray param, OutputArray err, OutputArray J) const =0
 computes error and Jacobian for the specified vector of parameters More...
 

Constructor & Destructor Documentation

◆ ~Callback()

Member Function Documentation

◆ compute()

virtual bool cv::LMSolver::Callback::compute ( InputArray  param,
OutputArray  err,
OutputArray  J 
) const
pure virtual

computes error and Jacobian for the specified vector of parameters

Parameters
paramthe current vector of parameters
erroutput vector of errors: err_i = actual_f_i - ideal_f_i
Joutput 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()).


The documentation for this class was generated from the following file: