![]() |
TerraLib 4.1
|
This is the base class to deal with a geometric trasformation direct and inverse mapping the tie-points TeCoordPair::pt1 space into TeCoordPair::pt2 space. More...
#include <TeGeometricTransformation.h>
Classes | |
| class | ExcTPDataNode |
| Excluded tie-points data. | |
| class | TPDataNode |
| Tie-points data. | |
Public Types | |
| typedef TeSharedPtr < TeGeometricTransformation > | pointer |
Public Member Functions | |
| virtual | ~TeGeometricTransformation () |
| Default Destructor. | |
| void | directMap (const TeCoord2D &pt1, TeCoord2D &pt2) const |
| Direct mapping ( from pt1 space into pt2 space ). | |
| void | inverseMap (const TeCoord2D &pt2, TeCoord2D &pt1) const |
| Inverse mapping ( from pt2 space into pt1 space ). | |
| bool | reset (const TeGTParams &newparams) |
| Reset the current transformation following the new supplied parameters. | |
| void | getParameters (TeGTParams ¶ms) const |
| Returns a copy of the current internal transformation parameters. | |
| const TeGTParams & | getParameters () const |
| Returns a reference of the current internal transformation parameters. | |
| double | getDirectMappingError () const |
| Calculates the current transformation maximum direct mapping error ( from pt1 space into pt2 space ). | |
| double | getInverseMappingError () const |
| Calculates the current transformation maximum inverse mapping error ( from pt2 space into pt1 space ). | |
| double | getDMapRMSE () const |
| Calculates root mean square direct mapping error ( from pt1 space into pt2 space ). | |
| double | getIMapRMSE () const |
| Calculates root mean square inverse mapping error ( from pt2 space into pt1 space ). | |
| double | getDirectMappingError (const TeCoordPair &tie_point) const |
| Calculates the direct mapping error for the supplied tie-point ( from pt1 space into pt2 space ). | |
| double | getInverseMappingError (const TeCoordPair &tie_point) const |
| Calculates the inverse mapping error for the supplied tie-point ( from pt2 space into pt1 space ). | |
| virtual unsigned int | getMinRequiredTiePoints () const =0 |
| Returns the minimum number of required tie-points for the current transformation. | |
Static Public Member Functions | |
| static TeGeometricTransformation * | DefaultObject (const TeGTParams &) |
| Returns a default object. | |
Protected Member Functions | |
| virtual bool | isTransDefined (const TeGTParams ¶ms) const =0 |
| Verifies if the supplied parameters already has a defined transformation. | |
| TeGeometricTransformation () | |
| Default Constructor. | |
| virtual void | directMap (const TeGTParams ¶ms, const TeCoord2D &pt1, TeCoord2D &pt2) const =0 |
| Direct mapping ( from pt1 space into pt2 space ). | |
| virtual void | inverseMap (const TeGTParams ¶ms, const TeCoord2D &pt2, TeCoord2D &pt1) const =0 |
| Inverse mapping ( from pt2 space into pt1 space ). | |
| virtual bool | computeParameters (TeGTParams ¶ms) const =0 |
| Calculate the transformation parameters following the new supplied tie-points. | |
| double | getDirectMappingError (const TeGTParams ¶ms) const |
| Calculates maximum direct mapping error for the supplied parameters ( from pt1 space into pt2 space ). | |
| double | getInverseMappingError (const TeGTParams ¶ms) const |
| Calculates maximum inverse mapping error for the supplied parameters ( from pt2 space into pt1 space ). | |
| double | getDMapRMSE (const TeGTParams ¶ms) const |
| Calculates root mean square direct mapping error for the supplied parameters ( from pt1 space into pt2 space ). | |
| double | getIMapRMSE (const TeGTParams ¶ms) const |
| Calculates root mean square inverse mapping error for the supplied parameters ( from pt2 space into pt1 space ). | |
| double | getDirectMappingError (const TeCoordPair &tie_point, const TeGTParams ¶ms) const |
| Calculates the direct mapping error for the supplied tie-point. ( from pt1 space into pt2 space ). | |
| double | getInverseMappingError (const TeCoordPair &tie_point, const TeGTParams ¶ms) const |
| Calculates the inverse mapping error for the supplied tie-point. ( from pt2 space into pt1 space ). | |
This is the base class to deal with a geometric trasformation direct and inverse mapping the tie-points TeCoordPair::pt1 space into TeCoordPair::pt2 space.
Type definition for a TeGeometricTransformation instance pointer.
| TeGeometricTransformation::~TeGeometricTransformation | ( | ) | [virtual] |
Default Destructor.
| TeGeometricTransformation::TeGeometricTransformation | ( | ) | [protected] |
Default Constructor.
| virtual bool TeGeometricTransformation::computeParameters | ( | TeGTParams & | params | ) | const [protected, pure virtual] |
Calculate the transformation parameters following the new supplied tie-points.
| params | Transformation parameters. |
Implemented in Te2ndDegPolinomialGT, TeAffineGT, and TeProjectiveGT.
| TeGeometricTransformation * TeGeometricTransformation::DefaultObject | ( | const TeGTParams & | ) | [static] |
Returns a default object.
Direct mapping ( from pt1 space into pt2 space ).
| pt1 | pt1 coordinate. |
| pt2 | pt2 coordinate. |
| virtual void TeGeometricTransformation::directMap | ( | const TeGTParams & | params, |
| const TeCoord2D & | pt1, | ||
| TeCoord2D & | pt2 | ||
| ) | const [protected, pure virtual] |
Direct mapping ( from pt1 space into pt2 space ).
| params | Transformation parameters. |
| pt1 | pt1 coordinate. |
| pt2 | pt2 coordinate. |
Implemented in Te2ndDegPolinomialGT, TeAffineGT, and TeProjectiveGT.
| double TeGeometricTransformation::getDirectMappingError | ( | const TeCoordPair & | tie_point | ) | const [inline] |
Calculates the direct mapping error for the supplied tie-point ( from pt1 space into pt2 space ).
| tie_point | The tie-point. |
| double TeGeometricTransformation::getDirectMappingError | ( | const TeGTParams & | params | ) | const [protected] |
Calculates maximum direct mapping error for the supplied parameters ( from pt1 space into pt2 space ).
| params | Transformation parameters. |
| double TeGeometricTransformation::getDirectMappingError | ( | const TeCoordPair & | tie_point, |
| const TeGTParams & | params | ||
| ) | const [protected] |
Calculates the direct mapping error for the supplied tie-point. ( from pt1 space into pt2 space ).
| tie_point | The tie-point. |
| params | Transformation parameters. |
| double TeGeometricTransformation::getDirectMappingError | ( | ) | const [inline] |
Calculates the current transformation maximum direct mapping error ( from pt1 space into pt2 space ).
| double TeGeometricTransformation::getDMapRMSE | ( | const TeGTParams & | params | ) | const [protected] |
Calculates root mean square direct mapping error for the supplied parameters ( from pt1 space into pt2 space ).
| params | Transformation parameters. |
| double TeGeometricTransformation::getDMapRMSE | ( | ) | const [inline] |
Calculates root mean square direct mapping error ( from pt1 space into pt2 space ).
| double TeGeometricTransformation::getIMapRMSE | ( | const TeGTParams & | params | ) | const [protected] |
Calculates root mean square inverse mapping error for the supplied parameters ( from pt2 space into pt1 space ).
| params | Transformation parameters. |
| double TeGeometricTransformation::getIMapRMSE | ( | ) | const [inline] |
Calculates root mean square inverse mapping error ( from pt2 space into pt1 space ).
| double TeGeometricTransformation::getInverseMappingError | ( | ) | const [inline] |
Calculates the current transformation maximum inverse mapping error ( from pt2 space into pt1 space ).
| double TeGeometricTransformation::getInverseMappingError | ( | const TeCoordPair & | tie_point, |
| const TeGTParams & | params | ||
| ) | const [protected] |
Calculates the inverse mapping error for the supplied tie-point. ( from pt2 space into pt1 space ).
| tie_point | The tie-point. |
| params | Transformation parameters. |
| double TeGeometricTransformation::getInverseMappingError | ( | const TeGTParams & | params | ) | const [protected] |
Calculates maximum inverse mapping error for the supplied parameters ( from pt2 space into pt1 space ).
| params | Transformation parameters. |
| double TeGeometricTransformation::getInverseMappingError | ( | const TeCoordPair & | tie_point | ) | const [inline] |
Calculates the inverse mapping error for the supplied tie-point ( from pt2 space into pt1 space ).
| tie_point | The tie-point. |
| virtual unsigned int TeGeometricTransformation::getMinRequiredTiePoints | ( | ) | const [pure virtual] |
Returns the minimum number of required tie-points for the current transformation.
Implemented in Te2ndDegPolinomialGT, TeAffineGT, and TeProjectiveGT.
| void TeGeometricTransformation::getParameters | ( | TeGTParams & | params | ) | const |
Returns a copy of the current internal transformation parameters.
| params | The internal parameters copy. |
| const TeGTParams & TeGeometricTransformation::getParameters | ( | ) | const |
Returns a reference of the current internal transformation parameters.
| virtual void TeGeometricTransformation::inverseMap | ( | const TeGTParams & | params, |
| const TeCoord2D & | pt2, | ||
| TeCoord2D & | pt1 | ||
| ) | const [protected, pure virtual] |
Inverse mapping ( from pt2 space into pt1 space ).
| params | Transformation parameters. |
| pt2 | pt2 coordinate. |
| pt1 | pt1 coordinate. |
Implemented in Te2ndDegPolinomialGT, TeAffineGT, and TeProjectiveGT.
| void TeGeometricTransformation::inverseMap | ( | const TeCoord2D & | pt2, |
| TeCoord2D & | pt1 | ||
| ) | const [inline] |
Inverse mapping ( from pt2 space into pt1 space ).
| pt2 | pt2 coordinate. |
| pt1 | pt1 coordinate. |
| virtual bool TeGeometricTransformation::isTransDefined | ( | const TeGTParams & | params | ) | const [protected, pure virtual] |
Verifies if the supplied parameters already has a defined transformation.
| params | Transformation parameters. |
Implemented in Te2ndDegPolinomialGT, TeAffineGT, and TeProjectiveGT.
| bool TeGeometricTransformation::reset | ( | const TeGTParams & | newparams | ) |
Reset the current transformation following the new supplied parameters.
| newparams | The new parameters. |