37 #ifndef OPENGV_INDICES_HPP_ 38 #define OPENGV_INDICES_HPP_ 41 #include <Eigen/Eigen> 42 #include <Eigen/src/Core/util/DisableStupidWarnings.h> 45 using namespace Eigen;
70 Indices(
const std::vector<int> & indices) :
73 _numberCorrespondences(indices.size())
82 _numberCorrespondences(numberCorrespondences)
91 return _numberCorrespondences;
102 return (*_indices)[i];
Indices(size_t numberCorrespondences)
Constructor without index-vector (uses all correspondences).
Definition: Indices.hpp:80
bool _useIndices
Definition: Indices.hpp:60
The namespace of this library.
Definition: AbsoluteAdapterBase.hpp:47
const std::vector< int > * _indices
Definition: Indices.hpp:62
Indices(const std::vector< int > &indices)
Constructor using index-vector.
Definition: Indices.hpp:70
int operator[](int i) const
Get an index.
Definition: Indices.hpp:99
Definition: Indices.hpp:57
size_t _numberCorrespondences
Definition: Indices.hpp:64
size_t size() const
Get the number of correspondences.
Definition: Indices.hpp:89