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> >;
82 , fraction_nr_pretest_ (-1.0)
83 , nr_samples_pretest_ (1)
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>
RandomizedRandomSampleConsensus represents an implementation of the RRANSAC (Randomized RANdom SAmple...
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.
SampleConsensus represents the base class.
int max_iterations_
Maximum number of iterations before giving up.
shared_ptr< SampleConsensusModel< PointT > > Ptr
A point structure representing Euclidean xyz coordinates, and the RGB color.