39 #ifndef OPENGV_RELATIVE_POSE_CENTRALRELATIVEMULTIADAPTER_HPP_ 40 #define OPENGV_RELATIVE_POSE_CENTRALRELATIVEMULTIADAPTER_HPP_ 56 namespace relative_pose
72 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
78 std::vector<std::shared_ptr<bearingVectors_t> > bearingVectors1,
79 std::vector<std::shared_ptr<bearingVectors_t> > bearingVectors2 );
89 size_t pairIndex,
size_t correspondenceIndex )
const;
92 size_t pairIndex,
size_t correspondenceIndex )
const;
94 virtual double getWeight(
size_t pairIndex,
size_t correspondenceIndex )
const;
108 const std::vector<std::vector<int> > & multiIndices )
const;
111 size_t pairIndex,
size_t correspondenceIndex )
const;
virtual int multiPairIndex(size_t index) const
std::vector< int > multiPairIndices
Definition: CentralRelativeMultiAdapter.hpp:128
The namespace of this library.
Definition: AbsoluteAdapterBase.hpp:47
virtual std::vector< int > convertMultiIndices(const std::vector< std::vector< int > > &multiIndices) const
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.
EIGEN_MAKE_ALIGNED_OPERATOR_NEW CentralRelativeMultiAdapter(std::vector< std::shared_ptr< bearingVectors_t > > bearingVectors1, std::vector< std::shared_ptr< bearingVectors_t > > bearingVectors2)
Constructor. See protected class-members to understand parameters.
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 > singleIndexOffsets
Definition: CentralRelativeMultiAdapter.hpp:132
Eigen::Matrix3d rotation_t
Definition: types.hpp:71
virtual double getWeight(size_t pairIndex, size_t correspondenceIndex) const
virtual rotation_t getCamRotation(size_t pairIndex) const
virtual bearingVector_t getBearingVector1(size_t pairIndex, size_t correspondenceIndex) const
opengv::translation_t _t12
Definition: RelativeAdapterBase.hpp:178
std::vector< int > multiKeypointIndices
Definition: CentralRelativeMultiAdapter.hpp:130
std::vector< std::shared_ptr< bearingVectors_t > > _bearingVectors1
Definition: CentralRelativeMultiAdapter.hpp:121
virtual size_t getNumberPairs() const
Eigen::Vector3d bearingVector_t
Definition: types.hpp:55
virtual translation_t getCamOffset(size_t pairIndex) const
virtual int multiCorrespondenceIndex(size_t index) const
Definition: CentralRelativeMultiAdapter.hpp:65
std::vector< std::shared_ptr< bearingVectors_t > > _bearingVectors2
Definition: CentralRelativeMultiAdapter.hpp:125
virtual int convertMultiIndex(size_t pairIndex, size_t correspondenceIndex) const
virtual bearingVector_t getBearingVector2(size_t pairIndex, size_t correspondenceIndex) const
virtual size_t getNumberCorrespondences() const
Definition: RelativeMultiAdapterBase.hpp:210
virtual ~CentralRelativeMultiAdapter()
Destructor.
Definition: RelativeMultiAdapterBase.hpp:67