OpenGV
A library for solving calibrated central and non-central geometric vision problems
opengv::relative_pose::CentralRelativeMultiAdapter Class Reference

#include <CentralRelativeMultiAdapter.hpp>

Inheritance diagram for opengv::relative_pose::CentralRelativeMultiAdapter:
opengv::relative_pose::RelativeMultiAdapterBase opengv::relative_pose::RelativeAdapterBase

Public Member Functions

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.
 
virtual ~CentralRelativeMultiAdapter ()
 Destructor.
 
virtual bearingVector_t getBearingVector1 (size_t pairIndex, size_t correspondenceIndex) const
 
virtual bearingVector_t getBearingVector2 (size_t pairIndex, size_t correspondenceIndex) const
 
virtual double getWeight (size_t pairIndex, size_t correspondenceIndex) const
 
virtual translation_t getCamOffset (size_t pairIndex) const
 
virtual rotation_t getCamRotation (size_t pairIndex) const
 
virtual size_t getNumberCorrespondences (size_t pairIndex) const
 
virtual size_t getNumberPairs () const
 
virtual std::vector< int > convertMultiIndices (const std::vector< std::vector< int > > &multiIndices) const
 
virtual int convertMultiIndex (size_t pairIndex, size_t correspondenceIndex) const
 
virtual int multiPairIndex (size_t index) const
 
virtual int multiCorrespondenceIndex (size_t index) const
 
- Public Member Functions inherited from opengv::relative_pose::RelativeMultiAdapterBase
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 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...
 

Protected Attributes

std::vector< std::shared_ptr< bearingVectors_t > > _bearingVectors1
 
std::vector< std::shared_ptr< bearingVectors_t > > _bearingVectors2
 
std::vector< int > multiPairIndices
 
std::vector< int > multiKeypointIndices
 
std::vector< int > singleIndexOffsets
 
- Protected Attributes inherited from opengv::relative_pose::RelativeAdapterBase
opengv::translation_t _t12
 
opengv::rotation_t _R12
 

Detailed Description

Check the documentation of the parent-class to understand the meaning of a RelativeMultiAdapter. This child-class is for the multi-central case and holds data in form of references to opengv-types. It is meant to be used for problems involving more than two central viewpoints. This is experimental!

Member Function Documentation

virtual int opengv::relative_pose::CentralRelativeMultiAdapter::convertMultiIndex ( size_t  pairIndex,
size_t  correspondenceIndex 
) const
virtual
virtual std::vector<int> opengv::relative_pose::CentralRelativeMultiAdapter::convertMultiIndices ( const std::vector< std::vector< int > > &  multiIndices) const
virtual
virtual bearingVector_t opengv::relative_pose::CentralRelativeMultiAdapter::getBearingVector1 ( size_t  pairIndex,
size_t  correspondenceIndex 
) const
virtual
virtual bearingVector_t opengv::relative_pose::CentralRelativeMultiAdapter::getBearingVector2 ( size_t  pairIndex,
size_t  correspondenceIndex 
) const
virtual
virtual translation_t opengv::relative_pose::CentralRelativeMultiAdapter::getCamOffset ( size_t  pairIndex) const
virtual
virtual rotation_t opengv::relative_pose::CentralRelativeMultiAdapter::getCamRotation ( size_t  pairIndex) const
virtual
virtual size_t opengv::relative_pose::CentralRelativeMultiAdapter::getNumberCorrespondences ( size_t  pairIndex) const
virtual
virtual size_t opengv::relative_pose::CentralRelativeMultiAdapter::getNumberPairs ( ) const
virtual
virtual double opengv::relative_pose::CentralRelativeMultiAdapter::getWeight ( size_t  pairIndex,
size_t  correspondenceIndex 
) const
virtual
virtual int opengv::relative_pose::CentralRelativeMultiAdapter::multiCorrespondenceIndex ( size_t  index) const
virtual
virtual int opengv::relative_pose::CentralRelativeMultiAdapter::multiPairIndex ( size_t  index) const
virtual

Member Data Documentation

std::vector<std::shared_ptr<bearingVectors_t> > opengv::relative_pose::CentralRelativeMultiAdapter::_bearingVectors1
protected

References to multiple sets of bearing-vectors (the ones from camera 1 of each pair, and expressed in there

std::vector<std::shared_ptr<bearingVectors_t> > opengv::relative_pose::CentralRelativeMultiAdapter::_bearingVectors2
protected

References to multiple sets of bearing-vectors (the ones from camera 1 of each pair, and expressed in there).

std::vector<int> opengv::relative_pose::CentralRelativeMultiAdapter::multiKeypointIndices
protected

Initialized in constructor, used for (de)-serialiaztion of indices

std::vector<int> opengv::relative_pose::CentralRelativeMultiAdapter::multiPairIndices
protected

Initialized in constructor, used for (de)-serialiaztion of indices

std::vector<int> opengv::relative_pose::CentralRelativeMultiAdapter::singleIndexOffsets
protected

Initialized in constructor, used for (de)-serialiaztion of indices


The documentation for this class was generated from the following file: