39 #ifndef OPENGV_RELATIVE_POSE_NONCENTRALRELATIVEMULTIADAPTER_HPP_ 40 #define OPENGV_RELATIVE_POSE_NONCENTRALRELATIVEMULTIADAPTER_HPP_ 56 namespace relative_pose
74 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
80 std::vector<std::shared_ptr<bearingVectors_t> > bearingVectors1,
81 std::vector<std::shared_ptr<bearingVectors_t> > bearingVectors2,
93 size_t pairIndex,
size_t correspondenceIndex )
const;
96 size_t pairIndex,
size_t correspondenceIndex )
const;
98 virtual double getWeight(
size_t camIndex,
size_t correspondenceIndex )
const;
112 const std::vector<std::vector<int> > & multiIndices )
const;
115 size_t camIndex,
size_t correspondenceIndex )
const;
std::vector< int > singleIndexOffsets
Definition: NoncentralRelativeMultiAdapter.hpp:145
EIGEN_MAKE_ALIGNED_OPERATOR_NEW NoncentralRelativeMultiAdapter(std::vector< std::shared_ptr< bearingVectors_t > > bearingVectors1, std::vector< std::shared_ptr< bearingVectors_t > > bearingVectors2, const translations_t &camOffsets, const rotations_t &camRotations)
Constructor. See protected class-members to understand parameters.
virtual rotation_t getCamRotation(size_t pairIndex) const
The namespace of this library.
Definition: AbsoluteAdapterBase.hpp:47
virtual ~NoncentralRelativeMultiAdapter()
Destructor.
Adapter-class for passing bearing-vector correspondences to the relative-pose algorithms. Intended for multi-central-viewpoint or relative non-central-viewpoint problems. Access of correspondences etc. via an additional pair-index referring to the pairs of cameras.
virtual int multiCorrespondenceIndex(size_t index) const
opengv::rotation_t _R12
Definition: RelativeAdapterBase.hpp:188
Eigen::Vector3d translation_t
Definition: types.hpp:63
A collection of variables used in geometric vision for the computation of calibrated absolute and rel...
std::vector< int > multiKeypointIndices
Definition: NoncentralRelativeMultiAdapter.hpp:143
virtual std::vector< int > convertMultiIndices(const std::vector< std::vector< int > > &multiIndices) const
std::vector< int > multiPairIndices
Definition: NoncentralRelativeMultiAdapter.hpp:141
Eigen::Matrix3d rotation_t
Definition: types.hpp:71
virtual bearingVector_t getBearingVector1(size_t pairIndex, size_t correspondenceIndex) const
std::vector< rotation_t, Eigen::aligned_allocator< rotation_t > > rotations_t
Definition: types.hpp:75
opengv::translation_t _t12
Definition: RelativeAdapterBase.hpp:178
virtual bearingVector_t getBearingVector2(size_t pairIndex, size_t correspondenceIndex) const
std::vector< std::shared_ptr< bearingVectors_t > > _bearingVectors2
Definition: NoncentralRelativeMultiAdapter.hpp:129
const translations_t & _camOffsets
Definition: NoncentralRelativeMultiAdapter.hpp:134
Eigen::Vector3d bearingVector_t
Definition: types.hpp:55
Definition: NoncentralRelativeMultiAdapter.hpp:67
std::vector< std::shared_ptr< bearingVectors_t > > _bearingVectors1
Definition: NoncentralRelativeMultiAdapter.hpp:125
virtual size_t getNumberPairs() const
std::vector< translation_t, Eigen::aligned_allocator< translation_t > > translations_t
Definition: types.hpp:67
virtual int multiPairIndex(size_t index) const
const rotations_t & _camRotations
Definition: NoncentralRelativeMultiAdapter.hpp:138
virtual int convertMultiIndex(size_t camIndex, size_t correspondenceIndex) const
virtual translation_t getCamOffset(size_t pairIndex) const
virtual size_t getNumberCorrespondences() const
Definition: RelativeMultiAdapterBase.hpp:210
Definition: RelativeMultiAdapterBase.hpp:67
virtual double getWeight(size_t camIndex, size_t correspondenceIndex) const