43#include <pcl/sample_consensus/sac.h>
44#include <pcl/sample_consensus/sac_model.h>
59 template <
typename Po
intT>
65 using Ptr = shared_ptr<RandomizedRandomSampleConsensus<PointT> >;
66 using ConstPtr = shared_ptr<const RandomizedRandomSampleConsensus<PointT> >;
72 using SampleConsensus<PointT>
::model_;
81 : SampleConsensus<PointT> (model)
82 , fraction_nr_pretest_ (-1.0)
83 , nr_samples_pretest_ (1)
94 : SampleConsensus<PointT> (model, threshold)
95 , fraction_nr_pretest_ (-1.0)
96 , nr_samples_pretest_ (1)
115 fraction_nr_pretest_ = nr_pretest;
116 nr_samples_pretest_ = 0;
130 nr_samples_pretest_ = nr_pretest;
131 fraction_nr_pretest_ = -1.0;
140 double fraction_nr_pretest_;
143 std::size_t nr_samples_pretest_;
147#ifdef PCL_NO_PRECOMPILE
148#include <pcl/sample_consensus/impl/rransac.hpp>
void setNrSamplesPretest(std::size_t nr_pretest)
Set the absolute number of points to pre-test.
shared_ptr< const RandomizedRandomSampleConsensus< PointT > > ConstPtr
RandomizedRandomSampleConsensus(const SampleConsensusModelPtr &model, double threshold)
RRANSAC (Randomized RANdom SAmple Consensus) main constructor.
double getFractionNrPretest() const
Get the percentage of points to pre-test.
std::size_t getNrSamplesPretest() const
Get the absolute number of points to pre-test.
bool computeModel(int debug_verbosity_level=0) override
Compute the actual model and find the inliers.
RandomizedRandomSampleConsensus(const SampleConsensusModelPtr &model)
RRANSAC (Randomized RANdom SAmple Consensus) main constructor.
shared_ptr< RandomizedRandomSampleConsensus< PointT > > Ptr
void setFractionNrPretest(double nr_pretest)
Set the percentage of points to pre-test.
Eigen::VectorXf model_coefficients_
SampleConsensusModelPtr sac_model_
shared_ptr< SampleConsensusModel< PointT > > Ptr