39 #ifndef OPENGV_SAC_PROBLEMS_ABSOLUTE_POSE_ABSOLUTEPOSESACPROBLEM_HPP_ 40 #define OPENGV_SAC_PROBLEMS_ABSOLUTE_POSE_ABSOLUTEPOSESACPROBLEM_HPP_ 54 namespace sac_problems
59 namespace absolute_pose
95 bool randomSeed =
true) :
115 const std::vector<int> & indices,
116 bool randomSeed =
true) :
133 const std::vector<int> & indices,
134 model_t & outModel)
const;
140 const model_t & model,
141 const std::vector<int> & indices,
142 std::vector<double> & scores)
const;
148 const std::vector<int> & inliers,
149 const model_t & model,
150 model_t & optimized_model);
168 #endif //#ifndef OPENGV_SAC_PROBLEMS_ABSOLUTE_POSE_ABSOLUTEPOSESACPROBLEM_HPP_ Algorithm
Definition: AbsolutePoseSacProblem.hpp:78
Definition: AbsolutePoseSacProblem.hpp:68
algorithm_t _algorithm
Definition: AbsolutePoseSacProblem.hpp:161
Eigen::Matrix< double, 3, 4 > transformation_t
Definition: types.hpp:82
The namespace of this library.
Definition: AbsoluteAdapterBase.hpp:47
transformation_t model_t
Definition: AbsolutePoseSacProblem.hpp:73
Adapter-class for passing bearing-vector-to-point correspondences to the absolute-pose algorithms...
void setIndices(const std::vector< int > &indices)
Set the indices_ variable (see member-description).
SampleConsensusProblem(bool randomSeed=true)
Contructor.
virtual void optimizeModelCoefficients(const std::vector< int > &inliers, const model_t &model, model_t &optimized_model)
See parent-class.
Basis-class for Sample-consensus problems. Contains declarations for the three basic functions of a s...
opengv::absolute_pose::AbsoluteAdapterBase adapter_t
Definition: AbsolutePoseSacProblem.hpp:75
A collection of variables used in geometric vision for the computation of calibrated absolute and rel...
enum opengv::sac_problems::absolute_pose::AbsolutePoseSacProblem::Algorithm algorithm_t
virtual int getSampleSize() const
See parent-class.
AbsolutePoseSacProblem(adapter_t &adapter, algorithm_t algorithm, bool randomSeed=true)
Constructor.
Definition: AbsolutePoseSacProblem.hpp:94
Definition: SampleConsensusProblem.hpp:67
virtual void getSelectedDistancesToModel(const model_t &model, const std::vector< int > &indices, std::vector< double > &scores) const
See parent-class.
virtual size_t getNumberCorrespondences() const =0
Retrieve the number of correspondences.
AbsolutePoseSacProblem(adapter_t &adapter, algorithm_t algorithm, const std::vector< int > &indices, bool randomSeed=true)
Constructor.
Definition: AbsolutePoseSacProblem.hpp:112
virtual ~AbsolutePoseSacProblem()
Definition: AbsolutePoseSacProblem.hpp:127
void setUniformIndices(int N)
Use this method if you want to use all samples.
adapter_t & _adapter
Definition: AbsolutePoseSacProblem.hpp:159
virtual bool computeModelCoefficients(const std::vector< int > &indices, model_t &outModel) const
See parent-class.
Definition: AbsoluteAdapterBase.hpp:63