39 #ifndef OPENGV_ABSOLUTE_POSE_ABSOLUTEMULTIADAPTERBASE_HPP_ 40 #define OPENGV_ABSOLUTE_POSE_ABSOLUTEMULTIADAPTERBASE_HPP_ 55 namespace absolute_pose
72 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
111 size_t frameIndex,
size_t correspondenceIndex )
const = 0;
121 size_t frameIndex,
size_t correspondenceIndex )
const = 0;
143 size_t frameIndex,
size_t correspondenceIndex )
const = 0;
166 const std::vector<std::vector<int> > & multiIndices )
const = 0;
176 size_t frameIndex,
size_t correspondenceIndex )
const = 0;
219 size_t numberCorrespondences = 0;
222 return numberCorrespondences;
opengv::translation_t _t
Definition: AbsoluteAdapterBase.hpp:164
virtual int convertMultiIndex(size_t frameIndex, size_t correspondenceIndex) const =0
Convert a (frameIndex,correspondenceIndex)-pair into a serialized index.
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 correspon...
virtual size_t getNumberFrames() const =0
Retrieve the number of cameras.
virtual opengv::rotation_t getMultiCamRotation(size_t frameIndex) const =0
Retrieve the rotation from a camera to the viewpoint frame.
EIGEN_MAKE_ALIGNED_OPERATOR_NEW AbsoluteMultiAdapterBase()
Constructor.
Definition: AbsoluteMultiAdapterBase.hpp:77
The namespace of this library.
Definition: AbsoluteAdapterBase.hpp:47
virtual opengv::bearingVector_t getBearingVector(size_t frameIndex, size_t correspondenceIndex) const =0
Retrieve the bearing vector of a correspondence in a certain frame.
virtual double getWeight(size_t index) const
Definition: AbsoluteMultiAdapterBase.hpp:199
Adapter-class for passing bearing-vector-to-point correspondences to the absolute-pose algorithms...
opengv::rotation_t _R
Definition: AbsoluteAdapterBase.hpp:174
virtual int multiFrameIndex(size_t index) const =0
Get the frame-index corresponding to a serialized index.
Eigen::Vector3d translation_t
Definition: types.hpp:63
A collection of variables used in geometric vision for the computation of calibrated absolute and rel...
Definition: AbsoluteMultiAdapterBase.hpp:66
virtual bearingVector_t getBearingVector(size_t index) const
Definition: AbsoluteMultiAdapterBase.hpp:193
Eigen::Matrix3d rotation_t
Definition: types.hpp:71
virtual size_t getNumberCorrespondences() const
Definition: AbsoluteMultiAdapterBase.hpp:217
virtual translation_t getCamOffset(size_t index) const
Definition: AbsoluteMultiAdapterBase.hpp:205
virtual opengv::point_t getPoint(size_t frameIndex, size_t correspondenceIndex) const =0
Retrieve the world point of a correspondence.
Eigen::Vector3d bearingVector_t
Definition: types.hpp:55
virtual point_t getPoint(size_t index) const
Definition: AbsoluteMultiAdapterBase.hpp:211
virtual int multiCorrespondenceIndex(size_t index) const =0
Get the correspondence-index in a camera for a serialized index.
virtual rotation_t getCamRotation(size_t index) const
Definition: AbsoluteMultiAdapterBase.hpp:208
virtual ~AbsoluteMultiAdapterBase()
Destructor.
Definition: AbsoluteMultiAdapterBase.hpp:100
virtual opengv::translation_t getMultiCamOffset(size_t frameIndex) const =0
Retrieve the position of a camera seen from the viewpoint origin.
Eigen::Vector3d point_t
Definition: types.hpp:123
AbsoluteMultiAdapterBase(const opengv::rotation_t &R)
Constructor.
Definition: AbsoluteMultiAdapterBase.hpp:84
AbsoluteMultiAdapterBase(const opengv::translation_t &t, const opengv::rotation_t &R)
Constructor.
Definition: AbsoluteMultiAdapterBase.hpp:93
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...
Definition: AbsoluteAdapterBase.hpp:63