41 #ifndef OPENGV_SAC_PROBLEMS_RELATIVE_POSE_MULTINONCENTRALRELATIVEPOSESACPROBLEM_HPP_ 42 #define OPENGV_SAC_PROBLEMS_RELATIVE_POSE_MULTINONCENTRALRELATIVEPOSESACPROBLEM_HPP_ 56 namespace sac_problems
61 namespace relative_pose
100 adapter_t & adapter,
algorithm_t algorithm,
bool asCentral =
false,
101 bool randomSeed =
true) :
107 std::vector<int> numberCorrespondences;
126 const std::vector<std::vector<int> > & indices,
127 bool asCentral =
false,
128 bool randomSeed =
true) :
146 const std::vector< std::vector<int> > & indices,
147 model_t & outModel)
const;
153 const model_t & model,
154 const std::vector<std::vector<int> > & indices,
155 std::vector<std::vector<double> > & scores)
const;
161 const std::vector<std::vector<int> > & inliers,
162 const model_t & model,
163 model_t & optimized_model);
183 #endif //#ifndef OPENGV_SAC_PROBLEMS_RELATIVE_POSE_MULTINONCENTRALRELATIVEPOSESACPROBLEM_HPP_ Eigen::Matrix< double, 3, 4 > transformation_t
Definition: types.hpp:82
void setUniformIndices(std::vector< int > N)
Use this method if you want to use all samples.
The namespace of this library.
Definition: AbsoluteAdapterBase.hpp:47
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.
bool _asCentral
Definition: MultiNoncentralRelativePoseSacProblem.hpp:176
adapter_t & _adapter
Definition: MultiNoncentralRelativePoseSacProblem.hpp:172
Definition: MultiSampleConsensusProblem.hpp:70
A collection of variables used in geometric vision for the computation of calibrated absolute and rel...
virtual void getSelectedDistancesToModel(const model_t &model, const std::vector< std::vector< int > > &indices, std::vector< std::vector< double > > &scores) const
See parent-class.
MultiNoncentralRelativePoseSacProblem(adapter_t &adapter, algorithm_t algorithm, bool asCentral=false, bool randomSeed=true)
Constructor.
Definition: MultiNoncentralRelativePoseSacProblem.hpp:99
Basis-class for Sample-consensus problems. Contains declarations for the three basic functions of a s...
virtual ~MultiNoncentralRelativePoseSacProblem()
Definition: MultiNoncentralRelativePoseSacProblem.hpp:140
virtual std::vector< int > getSampleSizes() const
See parent-class.
MultiSampleConsensusProblem(bool randomSeed=true)
Contructor.
Algorithm
Definition: MultiNoncentralRelativePoseSacProblem.hpp:83
opengv::relative_pose::RelativeMultiAdapterBase adapter_t
Definition: MultiNoncentralRelativePoseSacProblem.hpp:80
Definition: MultiNoncentralRelativePoseSacProblem.hpp:73
virtual bool computeModelCoefficients(const std::vector< std::vector< int > > &indices, model_t &outModel) const
See parent-class.
virtual size_t getNumberPairs() const =0
Retrieve the number of camera-pairs.
virtual void optimizeModelCoefficients(const std::vector< std::vector< int > > &inliers, const model_t &model, model_t &optimized_model)
See parent-class.
transformation_t model_t
Definition: MultiNoncentralRelativePoseSacProblem.hpp:78
void setIndices(const std::vector< std::vector< int > > &indices)
Set the indices_ variable (see member-description).
virtual size_t getNumberCorrespondences(size_t pairIndex) const =0
Retrieve the number of correspondences for a camera-pair.
MultiNoncentralRelativePoseSacProblem(adapter_t &adapter, algorithm_t algorithm, const std::vector< std::vector< int > > &indices, bool asCentral=false, bool randomSeed=true)
Constructor.
Definition: MultiNoncentralRelativePoseSacProblem.hpp:123
enum opengv::sac_problems::relative_pose::MultiNoncentralRelativePoseSacProblem::Algorithm algorithm_t
algorithm_t _algorithm
Definition: MultiNoncentralRelativePoseSacProblem.hpp:174
Definition: RelativeMultiAdapterBase.hpp:67