#include <AbsoluteMultiAdapterBase.hpp>
Public Member Functions | |
EIGEN_MAKE_ALIGNED_OPERATOR_NEW | AbsoluteMultiAdapterBase () |
Constructor. | |
AbsoluteMultiAdapterBase (const opengv::rotation_t &R) | |
Constructor. More... | |
AbsoluteMultiAdapterBase (const opengv::translation_t &t, const opengv::rotation_t &R) | |
Constructor. More... | |
virtual | ~AbsoluteMultiAdapterBase () |
Destructor. | |
virtual opengv::bearingVector_t | getBearingVector (size_t frameIndex, size_t correspondenceIndex) const =0 |
Retrieve the bearing vector of a correspondence in a certain frame. More... | |
virtual double | getWeight (size_t frameIndex, size_t correspondenceIndex) 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 | getMultiCamOffset (size_t frameIndex) const =0 |
Retrieve the position of a camera seen from the viewpoint origin. More... | |
virtual opengv::rotation_t | getMultiCamRotation (size_t frameIndex) const =0 |
Retrieve the rotation from a camera to the viewpoint frame. More... | |
virtual opengv::point_t | getPoint (size_t frameIndex, size_t correspondenceIndex) const =0 |
Retrieve the world point of a correspondence. More... | |
virtual size_t | getNumberCorrespondences (size_t frameIndex) const =0 |
Retrieve the number of correspondences for a camera. More... | |
virtual size_t | getNumberFrames () const =0 |
Retrieve the number of cameras. More... | |
virtual std::vector< int > | convertMultiIndices (const std::vector< std::vector< int > > &multiIndices) const =0 |
Convert an array of (frameIndex,correspondenceIndex)-pairs into an array of serialized indices. More... | |
virtual int | convertMultiIndex (size_t frameIndex, size_t correspondenceIndex) const =0 |
Convert a (frameIndex,correspondenceIndex)-pair into a serialized index. More... | |
virtual int | multiFrameIndex (size_t index) const =0 |
Get the frame-index corresponding to a serialized index. More... | |
virtual int | multiCorrespondenceIndex (size_t index) const =0 |
Get the correspondence-index in a camera for a serialized index. More... | |
virtual bearingVector_t | getBearingVector (size_t index) const |
virtual double | getWeight (size_t index) const |
virtual translation_t | getCamOffset (size_t index) const |
virtual rotation_t | getCamRotation (size_t index) const |
virtual point_t | getPoint (size_t index) const |
virtual size_t | getNumberCorrespondences () const |
Public Member Functions inherited from opengv::absolute_pose::AbsoluteAdapterBase | |
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. | |
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... | |
Additional Inherited Members | |
Protected Attributes inherited from opengv::absolute_pose::AbsoluteAdapterBase | |
opengv::translation_t | _t |
opengv::rotation_t | _R |
See the documentation of AbsoluteAdapterBase to understand the meaning of an AbsoluteAdapter. AbsoluteMultiAdapterBase extends the interface of AbsoluteAdapterBase by an additional frame-index for referring to a camera. Intended for non-central absolute viewpoint problems, allowing camera-wise access of correspondences. Derived classes need to implement functionalities for deriving unique serialization of multi-indices.
|
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 |
Convert a (frameIndex,correspondenceIndex)-pair into a serialized index.
[in] | frameIndex | The index of the camera. |
[in] | correspondenceIndex | The index of the correspondence in the camera. |
Implemented in opengv::absolute_pose::NoncentralAbsoluteMultiAdapter.
|
pure virtual |
Convert an array of (frameIndex,correspondenceIndex)-pairs into an array of serialized indices.
[in] | multiIndices | Array of (frameIndex,correspondenceIndex)-pairs. |
Implemented in opengv::absolute_pose::NoncentralAbsoluteMultiAdapter.
|
pure virtual |
Retrieve the bearing vector of a correspondence in a certain frame.
[in] | frameIndex | Index of the frame. |
[in] | correspondenceIndex | Index of the correspondence in this frame. |
Implemented in opengv::absolute_pose::NoncentralAbsoluteMultiAdapter.
|
inlinevirtual |
See parent-class (no need to overload)
Implements opengv::absolute_pose::AbsoluteAdapterBase.
|
inlinevirtual |
See parent-class (no need to overload)
Implements opengv::absolute_pose::AbsoluteAdapterBase.
|
inlinevirtual |
See parent-class (no need to overload)
Implements opengv::absolute_pose::AbsoluteAdapterBase.
|
pure virtual |
Retrieve the position of a camera seen from the viewpoint origin.
[in] | frameIndex | Index of the frame. |
Implemented in opengv::absolute_pose::NoncentralAbsoluteMultiAdapter.
|
pure virtual |
Retrieve the rotation from a camera to the viewpoint frame.
[in] | frameIndex | Index of the frame. |
Implemented in opengv::absolute_pose::NoncentralAbsoluteMultiAdapter.
|
pure virtual |
Retrieve the number of correspondences for a camera.
[in] | frameIndex | Index of the camera. |
Implemented in opengv::absolute_pose::NoncentralAbsoluteMultiAdapter.
|
inlinevirtual |
See parent-class (no need to overload)
Implements opengv::absolute_pose::AbsoluteAdapterBase.
|
pure virtual |
Retrieve the number of cameras.
Implemented in opengv::absolute_pose::NoncentralAbsoluteMultiAdapter.
|
pure virtual |
Retrieve the world point of a correspondence.
[in] | frameIndex | Index of the frame. |
[in] | correspondenceIndex | Index of the correspondence in this frame. |
Implemented in opengv::absolute_pose::NoncentralAbsoluteMultiAdapter.
|
inlinevirtual |
See parent-class (no need to overload)
Implements opengv::absolute_pose::AbsoluteAdapterBase.
|
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] | frameIndex | Index of the frame. |
[in] | correspondenceIndex | Index of the correspondence in this frame. |
Implemented in opengv::absolute_pose::NoncentralAbsoluteMultiAdapter.
|
inlinevirtual |
See parent-class (no need to overload)
Implements opengv::absolute_pose::AbsoluteAdapterBase.
|
pure virtual |
Get the correspondence-index in a camera for a serialized index.
[in] | index | The serialized index. |
Implemented in opengv::absolute_pose::NoncentralAbsoluteMultiAdapter.
|
pure virtual |
Get the frame-index corresponding to a serialized index.
[in] | index | The serialized index. |
Implemented in opengv::absolute_pose::NoncentralAbsoluteMultiAdapter.