SourceXtractorPlusPlus
0.11
Please provide a description of the project.
|
LeastSquareEngine implementation which uses the levmar library. More...
#include <LevmarEngine.h>
Public Member Functions | |
LevmarEngine (size_t itmax=1000, double tau=1E-3, double epsilon1=1E-8, double epsilon2=1E-8, double epsilon3=1E-8, double delta=1E-4) | |
Constructs a new instance of the engine. More... | |
virtual | ~LevmarEngine () |
Destructor. More... | |
LeastSquareSummary | solveProblem (EngineParameterManager ¶meter_manager, ResidualEstimator &residual_estimator) override |
![]() | |
virtual | ~LeastSquareEngine ()=default |
Destructor. More... | |
Private Attributes | |
size_t | m_itmax |
std::vector< double > | m_opts |
LeastSquareEngine implementation which uses the levmar library.
Definition at line 36 of file LevmarEngine.h.
ModelFitting::LevmarEngine::LevmarEngine | ( | size_t | itmax = 1000 , |
double | tau = 1E-3 , |
||
double | epsilon1 = 1E-8 , |
||
double | epsilon2 = 1E-8 , |
||
double | epsilon3 = 1E-8 , |
||
double | delta = 1E-4 |
||
) |
Constructs a new instance of the engine.
itmax | maximum number of iterations |
tau | \(\tau\): scale factor for initial \(\mu\) |
epsilon1 | \(\epsilon1\): stopping threshold for \(||J^T\epsilon||_{inf}\) |
epsilon2 | \(\epsilon1\): stopping threshold for \(||\Delta p||_2\) |
epsilon3 | \(\epsilon1\): stopping threshold for \(||\epsilon||_2\) |
delta | step used in difference approximation to the Jacobian |
Definition at line 40 of file LevmarEngine.cpp.
|
virtualdefault |
Destructor.
|
overridevirtual |
Solves the minimization problem using the levmar library. The returned summary contains as underlying_framework_info an std::array<double,10>, which keeps the information regarding the minimization as it is provided by levmar (for more info see http://users.ics.forth.gr/~lourakis/levmar).
Implements ModelFitting::LeastSquareEngine.
Definition at line 55 of file LevmarEngine.cpp.
References ModelFitting::EngineParameterManager::convertCovarianceMatrixToWorldSpace(), std::vector< T >::data(), std::array< T >::data(), ModelFitting::EngineParameterManager::getEngineValues(), m_itmax, m_opts, ModelFitting::EngineParameterManager::numberOfParameters(), ModelFitting::ResidualEstimator::numberOfResiduals(), ModelFitting::ResidualEstimator::populateResiduals(), std::vector< T >::push_back(), std::sqrt(), std::tie(), and ModelFitting::EngineParameterManager::updateEngineValues().
|
private |
Definition at line 71 of file LevmarEngine.h.
Referenced by solveProblem().
|
private |
Definition at line 72 of file LevmarEngine.h.
Referenced by solveProblem().