39 #ifndef OPENGV_SAC_PROBLEMS_RELATIVE_POSE_ROTATIONONLYSACPROBLEM_HPP_ 40 #define OPENGV_SAC_PROBLEMS_RELATIVE_POSE_ROTATIONONLYSACPROBLEM_HPP_ 54 namespace sac_problems
59 namespace relative_pose
101 const std::vector<int> & indices,
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_ROTATIONONLYSACPROBLEM_HPP_ The namespace of this library.
Definition: AbsoluteAdapterBase.hpp:47
virtual bool computeModelCoefficients(const std::vector< int > &indices, model_t &outModel) 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.
Definition: RotationOnlySacProblem.hpp:68
Basis-class for Sample-consensus problems. Contains declarations for the three basic functions of a s...
A collection of variables used in geometric vision for the computation of calibrated absolute and rel...
virtual void optimizeModelCoefficients(const std::vector< int > &inliers, const model_t &model, model_t &optimized_model)
See parent-class.
virtual ~RotationOnlySacProblem()
Definition: RotationOnlySacProblem.hpp:111
virtual int getSampleSize() const
See parent-class.
Eigen::Matrix3d rotation_t
Definition: types.hpp:71
adapter_t & _adapter
Definition: RotationOnlySacProblem.hpp:143
Definition: SampleConsensusProblem.hpp:67
Definition: RelativeAdapterBase.hpp:63
opengv::relative_pose::RelativeAdapterBase adapter_t
Definition: RotationOnlySacProblem.hpp:75
RotationOnlySacProblem(adapter_t &adapter, const std::vector< int > &indices, bool randomSeed=true)
Constructor.
Definition: RotationOnlySacProblem.hpp:99
virtual void getSelectedDistancesToModel(const model_t &model, const std::vector< int > &indices, std::vector< double > &scores) const
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.
rotation_t model_t
Definition: RotationOnlySacProblem.hpp:73
RotationOnlySacProblem(adapter_t &adapter, bool randomSeed=true)
Constructor.
Definition: RotationOnlySacProblem.hpp:84