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];
The namespace of this library.
Definition: AbsoluteAdapterBase.hpp:48
Definition: Indices.hpp:58
int operator[](int i) const
Get an index.
Definition: Indices.hpp:99
bool _useIndices
Definition: Indices.hpp:60
Indices(size_t numberCorrespondences)
Constructor without index-vector (uses all correspondences).
Definition: Indices.hpp:80
size_t size() const
Get the number of correspondences.
Definition: Indices.hpp:89
const std::vector< int > * _indices
Definition: Indices.hpp:62
Indices(const std::vector< int > &indices)
Constructor using index-vector.
Definition: Indices.hpp:70
size_t _numberCorrespondences
Definition: Indices.hpp:64