Base class for 2D transformation estimations from two point sets.
More...
#include <EstimateTransformation2D.hpp>
List of all members.
Detailed Description
template<class T>
class TRTK::EstimateTransformation2D< T >
Base class for 2D transformation estimations from two point sets.
- Note:
- Some functions might throw an error object. See the appropriate function for more details.
- See also:
- EstimateTransformation
- Author:
- Christoph Haenisch
- Version:
- 0.1.1
- Date:
- 2011-08-05
Definition at line 53 of file EstimateTransformation2D.hpp.
Member Enumeration Documentation
- Enumerator:
NOT_ENOUGH_POINTS |
More points are required to estimate the transformation.
|
UNEQUAL_NUMBER_OF_POINTS |
The two point sets do not have the same cardinality.
|
UNKNOWN_ERROR |
An unknown error occured.
|
WRONG_POINT_SIZE |
One or more points have a wrong size.
|
Definition at line 62 of file EstimateTransformation.hpp.
Constructor & Destructor Documentation
Constructs a new initialized instance of this class.
- Template Parameters:
-
T | scalar type of the coordinates |
Definition at line 113 of file EstimateTransformation2D.hpp.
Member Function Documentation
Returns the root mean square (RMS) error of the estimated transformation.
- Template Parameters:
-
T | scalar type of the coordinates |
It is assumed, that the computation was done before.
The value type T
must provide a function T sqrt(T value)
which yields the square root of value
.
- Exceptions:
-
ErrorObj | If the point sets do not have the same cardinality, an error object is thrown and its error code is set to UNEQUAL_NUMBER_OF_POINTS . |
- See also:
- compute()
Implements TRTK::EstimateTransformation< T >.
Definition at line 148 of file EstimateTransformation2D.hpp.
- Template Parameters:
-
T | scalar type of the coordinates |
- Returns:
- Returns the sought transformation matrix in the form of a homogeneous 3x3 matrix. (This comprises the rotation as well as the translation, for instance.)
- See also:
- compute()
Definition at line 194 of file EstimateTransformation2D.hpp.
Sets the source points.
- Template Parameters:
-
T | scalar type of the coordinates |
- Parameters:
-
[in] | source_points | The points can either be plain 2D or 3D homogeneous coordinates. |
- Exceptions:
-
ErrorObj | If there are any coordinates other than 2D or 3D coordinates, an error object is thrown and its error code is set to WRONG_POINT_SIZE . |
Definition at line 214 of file EstimateTransformation2D.hpp.
Sets the source points.
- Template Parameters:
-
T | scalar type of the coordinates |
- Parameters:
-
[in] | source_points | 2D coordinates. |
Definition at line 246 of file EstimateTransformation2D.hpp.
Sets the target points.
- Template Parameters:
-
T | scalar type of the coordinates |
- Parameters:
-
[in] | target_points | The points can either be plain 2D or 3D homogeneous coordinates. |
- Exceptions:
-
ErrorObj | If there are any coordinates other than 2D or 3D coordinates, an error object is thrown and its error code is set to WRONG_POINT_SIZE . |
Definition at line 292 of file EstimateTransformation2D.hpp.
Sets the target points.
- Template Parameters:
-
T | scalar type of the coordinates |
- Parameters:
-
[in] | target_points | 2D coordinates. |
Definition at line 324 of file EstimateTransformation2D.hpp.
The documentation for this class was generated from the following file: