Image Component Library (ICL)
Public Member Functions | Static Public Member Functions | Private Types | List of all members
icl::math::LeastSquareModelFitting2D Class Reference

Direct Least Square Fitting specialization for 2D input data. More...

#include <LeastSquareModelFitting2D.h>

Inheritance diagram for icl::math::LeastSquareModelFitting2D:
icl::math::LeastSquareModelFitting< double, utils::Point32f >

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::Point32fSuper
 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...
 

Detailed Description

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

Member Typedef Documentation

◆ Super

super type

Constructor & Destructor Documentation

◆ LeastSquareModelFitting2D() [1/2]

icl::math::LeastSquareModelFitting2D::LeastSquareModelFitting2D ( )
inline

Default constructor for creating dummy instances.

◆ LeastSquareModelFitting2D() [2/2]

icl::math::LeastSquareModelFitting2D::LeastSquareModelFitting2D ( int  modelDim,
DesignMatrixGen  gen,
DynMatrix< double > *  constraintMatrix = 0 
)
inline

Constructor with given parameters.

Member Function Documentation

◆ circle_gen()

static void icl::math::LeastSquareModelFitting2D::circle_gen ( const utils::Point32f p,
double *  d 
)
inlinestatic

DesignMatrixGenerator for the 4 parameter circle model.

See also
LeastSquareModelFitting

◆ ellipse_gen()

static void icl::math::LeastSquareModelFitting2D::ellipse_gen ( const utils::Point32f p,
double *  d 
)
inlinestatic

DesignMatrixGenerator for the 6 parameter general ellipse model.

See also
LeastSquareModelFitting

◆ fit()

std::vector<double> icl::math::LeastSquareModelFitting2D::fit ( const std::vector< utils::Point32f > &  points)
inline

◆ getError()

icl64f icl::math::LeastSquareModelFitting2D::getError ( const std::vector< double > &  model,
const utils::Point32f p 
)
inline

◆ line_gen()

static void icl::math::LeastSquareModelFitting2D::line_gen ( const utils::Point32f p,
double *  d 
)
inlinestatic

DesignMatrixGenerator for the 3-parameter line model.

See also
LeastSquareModelFitting

◆ restr_ellipse_gen()

static void icl::math::LeastSquareModelFitting2D::restr_ellipse_gen ( const utils::Point32f p,
double *  d 
)
inlinestatic

DesignMatrixGenerator for the 5 parameter restricted ellipse model.

See also
LeastSquareModelFitting

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