Image Component Library (ICL)
|
Direct Least Square Fitting specialization for 2D input data. More...
#include <LeastSquareModelFitting2D.h>
Public Member Functions | |
LeastSquareModelFitting2D () | |
Default constructor for creating dummy instances. More... | |
LeastSquareModelFitting2D (int modelDim, DesignMatrixGen gen, DynMatrix< double > *constraintMatrix=0) | |
Constructor with given parameters. More... | |
std::vector< double > | fit (const std::vector< utils::Point32f > &points) |
icl64f | getError (const std::vector< double > &model, const utils::Point32f &p) |
Public Member Functions inherited from icl::math::LeastSquareModelFitting< double, utils::Point32f > | |
LeastSquareModelFitting () | |
Empty constructor that creates a dummy instance. More... | |
LeastSquareModelFitting (int modelDim, DesignMatrixGen gen, DynMatrix< double > *constraintMatrix=0) | |
constructor with given parameters More... | |
icl64f | getError (const Model &model, const utils::Point32f &p) |
computes the error for a given data point More... | |
Model | fit (const std::vector< utils::Point32f > &points) |
fits the model to the given data points and returns optimal parameter set More... | |
Static Public Member Functions | |
static void | line_gen (const utils::Point32f &p, double *d) |
DesignMatrixGenerator for the 3-parameter line model. More... | |
static void | circle_gen (const utils::Point32f &p, double *d) |
DesignMatrixGenerator for the 4 parameter circle model. More... | |
static void | restr_ellipse_gen (const utils::Point32f &p, double *d) |
DesignMatrixGenerator for the 5 parameter restricted ellipse model. More... | |
static void | ellipse_gen (const utils::Point32f &p, double *d) |
DesignMatrixGenerator for the 6 parameter general ellipse model. More... | |
Private Types | |
typedef LeastSquareModelFitting< double, utils::Point32f > | Super |
super type More... | |
Additional Inherited Members | |
Public Types inherited from icl::math::LeastSquareModelFitting< double, utils::Point32f > | |
typedef utils::Function< void, const utils::Point32f &, double * > | DesignMatrixGen |
fills the give float* with data from the given data point More... | |
typedef std::vector< double > | Model |
model type (defines the model parameters) More... | |
Direct Least Square Fitting specialization for 2D input data.
Specialized least square model fitting for 2D data. Also some special desing matrix creation methods are provided
|
private |
super type
|
inline |
Default constructor for creating dummy instances.
|
inline |
Constructor with given parameters.
|
inlinestatic |
DesignMatrixGenerator for the 4 parameter circle model.
|
inlinestatic |
DesignMatrixGenerator for the 6 parameter general ellipse model.
|
inline |
|
inline |
|
inlinestatic |
DesignMatrixGenerator for the 3-parameter line model.
|
inlinestatic |
DesignMatrixGenerator for the 5 parameter restricted ellipse model.