OpenCV  4.1.0
Open Source Computer Vision
Public Member Functions | List of all members
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
 

Constructor & Destructor Documentation

§ ~Callback()

virtual cv::LMSolver::Callback::~Callback ( )
inlinevirtual

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: