#include <PointCloudAdapterBase.hpp>
Public Member Functions | |
EIGEN_MAKE_ALIGNED_OPERATOR_NEW | PointCloudAdapterBase () |
Constructor. | |
PointCloudAdapterBase (const rotation_t &R12) | |
Constructor. More... | |
PointCloudAdapterBase (const translation_t &t12, const rotation_t &R12) | |
Constructor. More... | |
virtual | ~PointCloudAdapterBase () |
Destructor. | |
virtual opengv::point_t | getPoint1 (size_t index) const =0 |
Retrieve the 3D-point of a correspondence in frame 1. More... | |
virtual opengv::point_t | getPoint2 (size_t index) const =0 |
Retrieve the 3D-point of a correspondence in frame 2. More... | |
virtual size_t | getNumberCorrespondences () const =0 |
Retrieve the number of correspondences. More... | |
virtual double | getWeight (size_t index) const =0 |
Retrieve the weight of a correspondence. The weight is supposed to reflect the quality of a correspondence, and typically is between 0 and 1. More... | |
virtual opengv::translation_t | gett12 () const |
Retrieve the prior or known value for the relative position. More... | |
virtual void | sett12 (const translation_t &t12) |
Set the prior or known value for the relative position. More... | |
virtual opengv::rotation_t | getR12 () const |
Retrieve the prior or known value for the relative rotation. More... | |
virtual void | setR12 (const rotation_t &R12) |
Set the prior or known value for the relative rotation. More... | |
Public Attributes | |
translation_t | _t12 |
rotation_t | _R12 |
The PointCloudAdapterBase is the base-class for the visitors to the point-cloud alignment methods. It provides a unified interface to opengv-methods to access point correspondences and priors or known variables for the alignment. Derived classes may hold the data in any user-specific format, and adapt to opengv-types.
|
inline |
Constructor.
[in] | R12 | A prior or known value for the rotation from frame 2 to frame 1. |
|
inline |
Constructor.
[in] | t12 | A prior or known value for the position of frame 2 seen from frame 1. |
[in] | R12 | A prior or known value for the rotation from frame 2 to frame 1. |
|
pure virtual |
Retrieve the number of correspondences.
Implemented in opengv::point_cloud::PointCloudAdapter, and opengv::point_cloud::MAPointCloud.
|
pure virtual |
Retrieve the 3D-point of a correspondence in frame 1.
[in] | index | The serialized index of the correspondence. |
Implemented in opengv::point_cloud::PointCloudAdapter, and opengv::point_cloud::MAPointCloud.
|
pure virtual |
Retrieve the 3D-point of a correspondence in frame 2.
[in] | index | The serialized index of the correspondence. |
Implemented in opengv::point_cloud::PointCloudAdapter, and opengv::point_cloud::MAPointCloud.
|
inlinevirtual |
Retrieve the prior or known value for the relative rotation.
|
inlinevirtual |
Retrieve the prior or known value for the relative position.
|
pure virtual |
Retrieve the weight of a correspondence. The weight is supposed to reflect the quality of a correspondence, and typically is between 0 and 1.
[in] | index | The serialized index of the correspondence. |
Implemented in opengv::point_cloud::PointCloudAdapter, and opengv::point_cloud::MAPointCloud.
|
inlinevirtual |
Set the prior or known value for the relative rotation.
[in] | R12 | The prior or known value for the rotation. |
|
inlinevirtual |
Set the prior or known value for the relative position.
[in] | t12 | The prior or known value for the position. |
rotation_t opengv::point_cloud::PointCloudAdapterBase::_R12 |
Prior or known value for the rotation from frame 2 to frame 1. Initialized to identity if not provided.
translation_t opengv::point_cloud::PointCloudAdapterBase::_t12 |
Prior or known value for the position of frame 2 seen from frame 1. Initialized to zero if not provided.