Base class for 3D fitting algorithms where fitting is done to a 3D point set. More...
#include <Fit3D.hpp>
Public Types | |
typedef super::ArrayXT | ArrayXT |
General-purpose array of arbitrary size with value type T. | |
typedef super::MatrixXT | MatrixXT |
Matrix of arbitrary size with value type T. | |
typedef super::VectorXT | VectorXT |
Column vector of arbitrary size with value type T. | |
typedef super::Vector2T | Vector2T |
2D column vector with value type T. | |
typedef super::Vector3T | Vector3T |
3D column vector with value type T. | |
typedef super::Vector4T | Vector4T |
4D column vector with value type T. | |
typedef super::Matrix2T | Matrix2T |
2 x 2 matrix with value type T. | |
typedef super::Matrix3T | Matrix3T |
3 x 3 matrix with value type T. | |
enum | Error { DATA_POINTS_TOO_SIMILAR, INFINITY_NOT_AVAILABLE, NAN_NOT_AVAILABLE, NOT_ENOUGH_POINTS, UNKNOWN_ERROR, WRONG_POINT_SIZE } |
Public Member Functions | |
Fit3D () | |
Constructs a new initialized instance of this class. | |
virtual | ~Fit3D () |
Deletes the instance. | |
void | compute ()=0 |
Performs the regression analysis. | |
T | getDistanceTo (const Coordinate< T > &point) const =0 |
Returns the distance/deviation of the given data point to the estimated model. | |
T | getRMS () const =0 |
Returns the root mean square error of the model fitting. | |
unsigned | getNumberPointsRequired () const =0 |
Returns the minimum number of data points required to compute a model. | |
void | setPoints (const std::vector< Coordinate< T > > &) |
Sets the point set. | |
void | setPoints (const std::vector< Vector3T > &) |
Sets the point set. | |
void | setPoints (const std::vector< Vector4T, Eigen::aligned_allocator< Vector4T > > &) |
Sets the point set. | |
Public Attributes | |
EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef T | value_type |
Internally used value type (should be a floating point type). | |
Protected Attributes | |
MatrixXT | m_points |
Base class for 3D fitting algorithms where fitting is done to a 3D point set.
Definition at line 53 of file Fit3D.hpp.
enum TRTK::Fit::Error [inherited] |
TRTK::Fit3D< T >::Fit3D | ( | ) |
TRTK::Fit3D< T >::~Fit3D | ( | ) | [virtual] |
void TRTK::Fit3D< T >::setPoints | ( | const std::vector< Vector4T, Eigen::aligned_allocator< Vector4T > > & | points ) |
Sets the point set.
T | scalar type of the coordinates |
[in] | points | 4D homogeneous coordinates. |
void TRTK::Fit3D< T >::setPoints | ( | const std::vector< Coordinate< T > > & | points ) | [virtual] |
Sets the point set.
T | scalar type of the coordinates |
[in] | points | The points can either be plain 3D or 4D homogeneous coordinates. |
ErrorObj | If there are any coordinates other than 3D or 4D coordinates, an error object is thrown and its error code is set to WRONG_POINT_SIZE . |
Implements TRTK::Fit< T >.
void TRTK::Fit3D< T >::setPoints | ( | const std::vector< Vector3T > & | points ) |
Documentation generated by Doxygen