#include <RelativeMultiAdapterBase.hpp>
Public Member Functions | |
| EIGEN_MAKE_ALIGNED_OPERATOR_NEW | RelativeMultiAdapterBase () |
| RelativeMultiAdapterBase (const rotation_t &R12) | |
| RelativeMultiAdapterBase (const translation_t &t12, const rotation_t &R12) | |
| virtual | ~RelativeMultiAdapterBase () |
| virtual bearingVector_t | getBearingVector1 (size_t pairIndex, size_t correspondenceIndex) const =0 |
| Retrieve the bearing vector of a correspondence in camera 1 of a pair. More... | |
| virtual bearingVector_t | getBearingVector2 (size_t pairIndex, size_t correspondenceIndex) const =0 |
| Retrieve the bearing vector of a correspondence in camera 2 of a pair. More... | |
| virtual double | getWeight (size_t pairIndex, 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 translation_t | getCamOffset (size_t pairIndex) const =0 |
| Retrieve the position of the cameras of a camera-pair seen from the origin of the viewpoints (assumed to be the same in both viewpoints). More... | |
| virtual rotation_t | getCamRotation (size_t pairIndex) const =0 |
| Retrieve the rotation from the cameras of a camera-pair back to the origin of the viewpoints (assumed to be the same in both viewpoints). More... | |
| virtual size_t | getNumberCorrespondences (size_t pairIndex) const =0 |
| Retrieve the number of correspondences for a camera-pair. More... | |
| virtual size_t | getNumberPairs () const =0 |
| Retrieve the number of camera-pairs. More... | |
| virtual std::vector< int > | convertMultiIndices (const std::vector< std::vector< int > > &multiIndices) const =0 |
| Convert an array of (pairIndex,correspondenceIndex)-pairs into an array of serialized indices. More... | |
| virtual int | convertMultiIndex (size_t pairIndex, size_t correspondenceIndex) const =0 |
| Convert a (pairIndex,correspondenceIndex)-pair into a serialized index. More... | |
| virtual int | multiPairIndex (size_t index) const =0 |
| Get the camera-pair-index corresponding to a serialized index. More... | |
| virtual int | multiCorrespondenceIndex (size_t index) const =0 |
| Get the keypoint-index in a camera-pair for a serialized index. More... | |
| virtual bearingVector_t | getBearingVector1 (size_t index) const |
| virtual bearingVector_t | getBearingVector2 (size_t index) const |
| virtual double | getWeight (size_t index) const |
| virtual translation_t | getCamOffset1 (size_t index) const |
| virtual rotation_t | getCamRotation1 (size_t index) const |
| virtual translation_t | getCamOffset2 (size_t index) const |
| virtual rotation_t | getCamRotation2 (size_t index) const |
| virtual size_t | getNumberCorrespondences () const |
Public Member Functions inherited from opengv::relative_pose::RelativeAdapterBase | |
| EIGEN_MAKE_ALIGNED_OPERATOR_NEW | RelativeAdapterBase () |
| Constructor. | |
| RelativeAdapterBase (const rotation_t &R12) | |
| Constructor. More... | |
| RelativeAdapterBase (const translation_t &t12, const rotation_t &R12) | |
| Constructor. More... | |
| virtual | ~RelativeAdapterBase () |
| Destructor. | |
| opengv::translation_t | gett12 () const |
| Retrieve the prior or known value for the relative position. More... | |
| void | sett12 (const opengv::translation_t &t12) |
| Set the prior or known value for the relative position. More... | |
| opengv::rotation_t | getR12 () const |
| Retrieve the prior or known value for the relative rotation. More... | |
| void | setR12 (const opengv::rotation_t &R12) |
| Set the prior or known value for the relative rotation. More... | |
Additional Inherited Members | |
Protected Attributes inherited from opengv::relative_pose::RelativeAdapterBase | |
| opengv::translation_t | _t12 |
| opengv::rotation_t | _R12 |
See the documentation of RelativeAdapterBase to understand the meaning of a RelativeAdapter. RelativeMultiAdapterBase extends the interface of RelativeAdapterBase by an additional pair-index for referring to pairs of cameras. Intended for special central multi-viewpoint or non-central relative viewpoint problems, allowing "camera-pair"-wise grouping of correspondences. Derived classes need to implement functionalities for deriving unique serialization of multi-indices.
|
inline |
See parent-class
|
inline |
See parent-class
|
inline |
See parent-class
|
inlinevirtual |
See parent-class
|
pure virtual |
Convert a (pairIndex,correspondenceIndex)-pair into a serialized index.
| [in] | pairIndex | The index of the camera-pair. |
| [in] | correspondenceIndex | The index of the keypoint in the camera-pair. |
Implemented in opengv::relative_pose::NoncentralRelativeMultiAdapter, opengv::relative_pose::MANoncentralRelativeMulti, and opengv::relative_pose::CentralRelativeMultiAdapter.
|
pure virtual |
Convert an array of (pairIndex,correspondenceIndex)-pairs into an array of serialized indices.
| [in] | multiIndices | Array of (pairIndex,correspondenceIndex)-pairs. |
Implemented in opengv::relative_pose::NoncentralRelativeMultiAdapter, opengv::relative_pose::MANoncentralRelativeMulti, and opengv::relative_pose::CentralRelativeMultiAdapter.
|
pure virtual |
Retrieve the bearing vector of a correspondence in camera 1 of a pair.
| [in] | pairIndex | Index of the camera-pair. |
| [in] | correspondenceIndex | Index of the correspondence in the camera-pair. |
Implemented in opengv::relative_pose::NoncentralRelativeMultiAdapter, opengv::relative_pose::MANoncentralRelativeMulti, and opengv::relative_pose::CentralRelativeMultiAdapter.
|
inlinevirtual |
See parent-class (no need to overload)
Implements opengv::relative_pose::RelativeAdapterBase.
|
pure virtual |
Retrieve the bearing vector of a correspondence in camera 2 of a pair.
| [in] | pairIndex | Index of the camera-pair. |
| [in] | correspondenceIndex | Index of the correspondence in the camera-pair. |
Implemented in opengv::relative_pose::NoncentralRelativeMultiAdapter, opengv::relative_pose::MANoncentralRelativeMulti, and opengv::relative_pose::CentralRelativeMultiAdapter.
|
inlinevirtual |
See parent-class (no need to overload)
Implements opengv::relative_pose::RelativeAdapterBase.
|
pure virtual |
Retrieve the position of the cameras of a camera-pair seen from the origin of the viewpoints (assumed to be the same in both viewpoints).
| [in] | pairIndex | Index of the camera-pair. |
Implemented in opengv::relative_pose::NoncentralRelativeMultiAdapter, opengv::relative_pose::MANoncentralRelativeMulti, and opengv::relative_pose::CentralRelativeMultiAdapter.
|
inlinevirtual |
See parent-class (no need to overload)
Implements opengv::relative_pose::RelativeAdapterBase.
|
inlinevirtual |
See parent-class (no need to overload)
Implements opengv::relative_pose::RelativeAdapterBase.
|
pure virtual |
Retrieve the rotation from the cameras of a camera-pair back to the origin of the viewpoints (assumed to be the same in both viewpoints).
| [in] | pairIndex | Index of the camera-pair. |
Implemented in opengv::relative_pose::NoncentralRelativeMultiAdapter, opengv::relative_pose::MANoncentralRelativeMulti, and opengv::relative_pose::CentralRelativeMultiAdapter.
|
inlinevirtual |
See parent-class (no need to overload)
Implements opengv::relative_pose::RelativeAdapterBase.
|
inlinevirtual |
See parent-class (no need to overload)
Implements opengv::relative_pose::RelativeAdapterBase.
|
pure virtual |
Retrieve the number of correspondences for a camera-pair.
| [in] | pairIndex | Index of the camera-pair. |
Implemented in opengv::relative_pose::NoncentralRelativeMultiAdapter, opengv::relative_pose::MANoncentralRelativeMulti, and opengv::relative_pose::CentralRelativeMultiAdapter.
|
inlinevirtual |
See parent-class (no need to overload)
Implements opengv::relative_pose::RelativeAdapterBase.
|
pure virtual |
Retrieve the number of camera-pairs.
Implemented in opengv::relative_pose::NoncentralRelativeMultiAdapter, opengv::relative_pose::MANoncentralRelativeMulti, and opengv::relative_pose::CentralRelativeMultiAdapter.
|
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] | pairIndex | Index of the camera-pair. |
| [in] | correspondenceIndex | Index of the correspondence in the camera-pair. |
Implemented in opengv::relative_pose::NoncentralRelativeMultiAdapter, opengv::relative_pose::MANoncentralRelativeMulti, and opengv::relative_pose::CentralRelativeMultiAdapter.
|
inlinevirtual |
See parent-class (no need to overload)
Implements opengv::relative_pose::RelativeAdapterBase.
|
pure virtual |
Get the keypoint-index in a camera-pair for a serialized index.
| [in] | index | The serialized index. |
Implemented in opengv::relative_pose::NoncentralRelativeMultiAdapter, opengv::relative_pose::MANoncentralRelativeMulti, and opengv::relative_pose::CentralRelativeMultiAdapter.
|
pure virtual |
Get the camera-pair-index corresponding to a serialized index.
| [in] | index | The serialized index. |
Implemented in opengv::relative_pose::NoncentralRelativeMultiAdapter, opengv::relative_pose::MANoncentralRelativeMulti, and opengv::relative_pose::CentralRelativeMultiAdapter.