#include <AbsoluteAdapterBase.hpp>
Public Member Functions | |
EIGEN_MAKE_ALIGNED_OPERATOR_NEW | AbsoluteAdapterBase () |
Constructor. | |
AbsoluteAdapterBase (const opengv::rotation_t &R) | |
Constructor. More... | |
AbsoluteAdapterBase (const opengv::translation_t &t, const opengv::rotation_t &R) | |
Constructor. More... | |
virtual | ~AbsoluteAdapterBase () |
Destructor. | |
virtual opengv::bearingVector_t | getBearingVector (size_t index) const =0 |
Retrieve the bearing vector of a correspondence. 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 | getCamOffset (size_t index) const =0 |
Retrieve the position of a camera of a correspondence seen from the viewpoint origin. More... | |
virtual opengv::rotation_t | getCamRotation (size_t index) const =0 |
Retrieve the rotation from a camera of a correspondence to the viewpoint origin. More... | |
virtual opengv::point_t | getPoint (size_t index) const =0 |
Retrieve the world point of a correspondence. More... | |
virtual size_t | getNumberCorrespondences () const =0 |
Retrieve the number of correspondences. More... | |
opengv::translation_t | gett () const |
Retrieve the prior or known value for the position. More... | |
void | sett (const opengv::translation_t &t) |
Set the prior or known value for the position. More... | |
opengv::rotation_t | getR () const |
Retrieve the prior or known value for the rotation. More... | |
void | setR (const opengv::rotation_t &R) |
Set the prior or known value for the rotation. More... | |
Protected Attributes | |
opengv::translation_t | _t |
opengv::rotation_t | _R |
The AbsoluteAdapterBase is the base-class for the visitors to the central and non-central absolute pose algorithms. It provides a unified interface to opengv-methods to access bearing-vectors, world points, priors or known variables for the absolute pose, and the multi-camera configuration in the non-central case. Derived classes may hold the data in any user-specific format, and adapt to opengv-types.
|
inline |
Constructor.
[in] | R | A prior or known value for the rotation from the viewpoint to the world frame. |
|
inline |
Constructor.
[in] | t | A prior or known value for the position of the viewpoint seen from the world frame. |
[in] | R | A prior or known value for the rotation from the viewpoint to the world frame. |
|
pure virtual |
Retrieve the bearing vector of a correspondence.
[in] | index | The serialized index of the correspondence. |
Implemented in opengv::absolute_pose::AbsoluteMultiAdapterBase, opengv::absolute_pose::NoncentralAbsoluteAdapter, opengv::absolute_pose::CentralAbsoluteAdapter, opengv::absolute_pose::MACentralAbsolute, and opengv::absolute_pose::MANoncentralAbsolute.
|
pure virtual |
Retrieve the position of a camera of a correspondence seen from the viewpoint origin.
[in] | index | The serialized index of the correspondence. |
Implemented in opengv::absolute_pose::AbsoluteMultiAdapterBase, opengv::absolute_pose::NoncentralAbsoluteAdapter, opengv::absolute_pose::CentralAbsoluteAdapter, opengv::absolute_pose::MACentralAbsolute, and opengv::absolute_pose::MANoncentralAbsolute.
|
pure virtual |
Retrieve the rotation from a camera of a correspondence to the viewpoint origin.
[in] | index | The serialized index of the correspondence. |
Implemented in opengv::absolute_pose::AbsoluteMultiAdapterBase, opengv::absolute_pose::NoncentralAbsoluteAdapter, opengv::absolute_pose::CentralAbsoluteAdapter, opengv::absolute_pose::MACentralAbsolute, and opengv::absolute_pose::MANoncentralAbsolute.
|
pure virtual |
Retrieve the number of correspondences.
Implemented in opengv::absolute_pose::AbsoluteMultiAdapterBase, opengv::absolute_pose::NoncentralAbsoluteAdapter, opengv::absolute_pose::CentralAbsoluteAdapter, opengv::absolute_pose::MACentralAbsolute, and opengv::absolute_pose::MANoncentralAbsolute.
|
pure virtual |
Retrieve the world point of a correspondence.
[in] | index | The serialized index of the correspondence. |
Implemented in opengv::absolute_pose::AbsoluteMultiAdapterBase, opengv::absolute_pose::NoncentralAbsoluteAdapter, opengv::absolute_pose::CentralAbsoluteAdapter, opengv::absolute_pose::MACentralAbsolute, and opengv::absolute_pose::MANoncentralAbsolute.
|
inline |
Retrieve the prior or known value for the rotation.
|
inline |
Retrieve the prior or known value for the 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::absolute_pose::AbsoluteMultiAdapterBase, opengv::absolute_pose::NoncentralAbsoluteAdapter, opengv::absolute_pose::CentralAbsoluteAdapter, opengv::absolute_pose::MACentralAbsolute, and opengv::absolute_pose::MANoncentralAbsolute.
|
inline |
Set the prior or known value for the rotation.
[in] | R | The prior or known value for the rotation. |
|
inline |
Set the prior or known value for the position.
[in] | t | The prior or known value for the position. |
|
protected |
The prior or known value for the rotation from the viewpoint back to the world frame. Initialized to identity if not provided.
|
protected |
The prior or known value for the position of the viewpoint seen from the world frame. Initialized to zero if not provided.