39 #ifndef OPENGV_SAC_PROBLEMS_RELATIVE_POSE_TRANSLATIONONLYSACPROBLEM_HPP_ 40 #define OPENGV_SAC_PROBLEMS_RELATIVE_POSE_TRANSLATIONONLYSACPROBLEM_HPP_ 54 namespace sac_problems
59 namespace relative_pose
100 const std::vector<int> & indices,
101 bool randomSeed =
true) :
117 const std::vector<int> & indices,
118 model_t & outModel)
const;
124 const model_t & model,
125 const std::vector<int> & indices,
126 std::vector<double> & scores)
const;
132 const std::vector<int> & inliers,
133 const model_t & model,
134 model_t & optimized_model);
150 #endif //#ifndef OPENGV_SAC_PROBLEMS_RELATIVE_POSE_TRANSLATIONONLYSACPROBLEM_HPP_ TranslationOnlySacProblem(adapter_t &adapter, const std::vector< int > &indices, bool randomSeed=true)
Constructor.
Definition: TranslationOnlySacProblem.hpp:98
Eigen::Matrix< double, 3, 4 > transformation_t
Definition: types.hpp:82
The namespace of this library.
Definition: AbsoluteAdapterBase.hpp:47
virtual void getSelectedDistancesToModel(const model_t &model, const std::vector< int > &indices, std::vector< double > &scores) const
See parent-class.
Adapter-class for passing bearing-vector correspondences to the relative-pose algorithms.
void setIndices(const std::vector< int > &indices)
Set the indices_ variable (see member-description).
SampleConsensusProblem(bool randomSeed=true)
Contructor.
Basis-class for Sample-consensus problems. Contains declarations for the three basic functions of a s...
virtual bool computeModelCoefficients(const std::vector< int > &indices, model_t &outModel) const
See parent-class.
A collection of variables used in geometric vision for the computation of calibrated absolute and rel...
virtual int getSampleSize() const
See parent-class.
transformation_t model_t
Definition: TranslationOnlySacProblem.hpp:73
Definition: SampleConsensusProblem.hpp:67
Definition: RelativeAdapterBase.hpp:63
opengv::relative_pose::RelativeAdapterBase adapter_t
Definition: TranslationOnlySacProblem.hpp:75
adapter_t & _adapter
Definition: TranslationOnlySacProblem.hpp:143
TranslationOnlySacProblem(adapter_t &adapter, bool randomSeed=true)
Constructor.
Definition: TranslationOnlySacProblem.hpp:83
virtual void optimizeModelCoefficients(const std::vector< int > &inliers, const model_t &model, model_t &optimized_model)
See parent-class.
void setUniformIndices(int N)
Use this method if you want to use all samples.
virtual size_t getNumberCorrespondences() const =0
Retrieve the number of correspondences.
Definition: TranslationOnlySacProblem.hpp:68
virtual ~TranslationOnlySacProblem()
Definition: TranslationOnlySacProblem.hpp:111