39 #ifndef OPENGV_RELATIVE_POSE_MANONCENTRALRELATIVEMULTI_HPP_ 40 #define OPENGV_RELATIVE_POSE_MANONCENTRALRELATIVEMULTI_HPP_ 55 namespace relative_pose
73 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
79 const std::vector<double*> & bearingVectors1,
80 const std::vector<double*> & bearingVectors2,
81 const double * camOffsets,
82 const std::vector<int> & numberBearingVectors );
92 size_t pairIndex,
size_t correspondenceIndex )
const;
95 size_t pairIndex,
size_t correspondenceIndex )
const;
97 virtual double getWeight(
size_t camIndex,
size_t correspondenceIndex )
const;
111 const std::vector<std::vector<int> > & multiIndices )
const;
114 size_t camIndex,
size_t correspondenceIndex )
const;
virtual translation_t getCamOffset(size_t pairIndex) const
The namespace of this library.
Definition: AbsoluteAdapterBase.hpp:47
std::vector< int > multiPairIndices
Definition: MANoncentralRelativeMulti.hpp:134
virtual int convertMultiIndex(size_t camIndex, size_t correspondenceIndex) const
Definition: MANoncentralRelativeMulti.hpp:66
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.
std::vector< int > _numberBearingVectors
Definition: MANoncentralRelativeMulti.hpp:131
EIGEN_MAKE_ALIGNED_OPERATOR_NEW MANoncentralRelativeMulti(const std::vector< double * > &bearingVectors1, const std::vector< double * > &bearingVectors2, const double *camOffsets, const std::vector< int > &numberBearingVectors)
Constructor. See protected class-members to understand parameters.
std::vector< double * > _bearingVectors2
Definition: MANoncentralRelativeMulti.hpp:125
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...
virtual bearingVector_t getBearingVector2(size_t pairIndex, size_t correspondenceIndex) const
virtual int multiCorrespondenceIndex(size_t index) const
Eigen::Matrix3d rotation_t
Definition: types.hpp:71
std::vector< double * > _bearingVectors1
Definition: MANoncentralRelativeMulti.hpp:122
virtual double getWeight(size_t camIndex, size_t correspondenceIndex) const
opengv::translation_t _t12
Definition: RelativeAdapterBase.hpp:178
virtual int multiPairIndex(size_t index) const
virtual size_t getNumberPairs() const
virtual std::vector< int > convertMultiIndices(const std::vector< std::vector< int > > &multiIndices) const
Eigen::Vector3d bearingVector_t
Definition: types.hpp:55
virtual ~MANoncentralRelativeMulti()
Destructor.
std::vector< int > multiKeypointIndices
Definition: MANoncentralRelativeMulti.hpp:136
std::vector< int > singleIndexOffsets
Definition: MANoncentralRelativeMulti.hpp:138
const double * _camOffsets
Definition: MANoncentralRelativeMulti.hpp:128
virtual bearingVector_t getBearingVector1(size_t pairIndex, size_t correspondenceIndex) const
virtual rotation_t getCamRotation(size_t pairIndex) const
virtual size_t getNumberCorrespondences() const
Definition: RelativeMultiAdapterBase.hpp:210
Definition: RelativeMultiAdapterBase.hpp:67