40 #include <pcl/cuda/sample_consensus/sac_model.h>
41 #include <pcl/cuda/point_cloud.h>
49 template <
template <
typename>
class Storage>
68 using Ptr = shared_ptr<SampleConsensus>;
69 using ConstPtr = shared_ptr<const SampleConsensus>;
void setDistanceThreshold(float threshold)
Set the distance to model threshold.
SampleConsensus(const SampleConsensusModelPtr &model, float threshold)
Constructor for base SAC.
IndicesPtr inliers_stencil_
shared_ptr< const SampleConsensus > ConstPtr
IndicesPtr getInliersStencil()
IndicesPtr getInliers()
Return the best set of inliers found so far for this model.
typename Storage< float >::type Coefficients
int getMaxIterations()
Get the maximum number of iterations, as set by the user.
Indices model_
The model found after the last computeModel () as point cloud indices.
float probability_
Desired probability of choosing at least one sample free from outliers.
float threshold_
Distance to model threshold.
void getModel(Indices &model)
Return the best model found so far.
int max_iterations_
Maximum number of iterations before giving up.
void getModelCoefficients(Coefficients &model_coefficients)
Return the model coefficients of the best model found so far.
Coefficients model_coefficients_
The coefficients of our model computed directly from the model found.
IndicesPtr inliers_
The indices of the points that were chosen as inliers after the last call.
SampleConsensus(const SampleConsensusModelPtr &model)
Constructor for base SAC.
virtual bool computeModel(int debug_verbosity_level=0)=0
Compute the actual model.
void setMaxIterations(int max_iterations)
Set the maximum number of iterations.
shared_ptr< SampleConsensus > Ptr
virtual ~SampleConsensus()=default
Destructor for base SAC.
float getProbability()
Obtain the probability of choosing at least one sample free from outliers, as set by the user.
SampleConsensusModelPtr sac_model_
The underlying data model used (what is it that we attempt to search for).
shared_ptr< const Coefficients > CoefficientsConstPtr
int iterations_
Total number of internal loop iterations that we've done so far.
shared_ptr< Coefficients > CoefficientsPtr
void setProbability(float probability)
Set the desired probability of choosing at least one sample free from outliers.
float getDistanceThreshold()
Get the distance to model threshold, as set by the user.
typename Storage< float4 >::type Hypotheses
shared_ptr< const typename Storage< int >::type > IndicesConstPtr
shared_ptr< typename Storage< int >::type > IndicesPtr
typename Storage< int >::type Indices
shared_ptr< SampleConsensusModel > Ptr
shared_ptr< Indices > IndicesPtr