53 Super(modelDim,gen,constraintMatrix){}
93 inline std::vector<double>
fit(
const std::vector<utils::Point32f> &points){
undocument this line if you encounter any issues!
Definition: Any.h:37
LeastSquareModelFitting2D(int modelDim, DesignMatrixGen gen, DynMatrix< double > *constraintMatrix=0)
Constructor with given parameters.
Definition: LeastSquareModelFitting2D.h:51
float y
y position of this point
Definition: Point32f.h:48
icl64f getError(const Model &model, const utils::Point32f &p)
computes the error for a given data point
Definition: LeastSquareModelFitting.h:175
Direct Least Square Fitting Algorithm.
Definition: LeastSquareModelFitting.h:135
LeastSquareModelFitting< double, utils::Point32f > Super
super type
Definition: LeastSquareModelFitting2D.h:45
Direct Least Square Fitting specialization for 2D input data.
Definition: LeastSquareModelFitting2D.h:43
Model fit(const std::vector< utils::Point32f > &points)
fits the model to the given data points and returns optimal parameter set
Definition: LeastSquareModelFitting.h:187
icl64f getError(const std::vector< double > &model, const utils::Point32f &p)
Definition: LeastSquareModelFitting2D.h:96
Ipp64f icl64f
64Bit floating point type for the ICL
Definition: BasicTypes.h:52
static T sqr(const T &x)
square template (faster than pow(x,2)
Definition: Macros.h:212
LeastSquareModelFitting2D()
Default constructor for creating dummy instances.
Definition: LeastSquareModelFitting2D.h:48
std::vector< double > fit(const std::vector< utils::Point32f > &points)
Definition: LeastSquareModelFitting2D.h:93
Single precission 3D Vectors Point class of the ICL.
Definition: Point32f.h:41
static void line_gen(const utils::Point32f &p, double *d)
DesignMatrixGenerator for the 3-parameter line model.
Definition: LeastSquareModelFitting2D.h:57
float x
x position of this point
Definition: Point32f.h:45
static void circle_gen(const utils::Point32f &p, double *d)
DesignMatrixGenerator for the 4 parameter circle model.
Definition: LeastSquareModelFitting2D.h:65
static void ellipse_gen(const utils::Point32f &p, double *d)
DesignMatrixGenerator for the 6 parameter general ellipse model.
Definition: LeastSquareModelFitting2D.h:84
static void restr_ellipse_gen(const utils::Point32f &p, double *d)
DesignMatrixGenerator for the 5 parameter restricted ellipse model.
Definition: LeastSquareModelFitting2D.h:74