|
Point Cloud Library (PCL)
1.15.1-dev
|
#include </__w/1/s/cuda/sample_consensus/include/pcl/cuda/sample_consensus/sac.h>
Inheritance diagram for pcl::cuda::SampleConsensus< Storage >:
Collaboration diagram for pcl::cuda::SampleConsensus< Storage >:Public Types | |
| using | Coefficients = typename Storage< float >::type |
| using | CoefficientsPtr = shared_ptr< Coefficients > |
| using | CoefficientsConstPtr = shared_ptr< const Coefficients > |
| using | Ptr = shared_ptr< SampleConsensus > |
| using | ConstPtr = shared_ptr< const SampleConsensus > |
Public Member Functions | |
| SampleConsensus (const SampleConsensusModelPtr &model) | |
| Constructor for base SAC. More... | |
| SampleConsensus (const SampleConsensusModelPtr &model, float threshold) | |
| Constructor for base SAC. More... | |
| virtual | ~SampleConsensus ()=default |
| Destructor for base SAC. More... | |
| void | setDistanceThreshold (float threshold) |
| Set the distance to model threshold. More... | |
| float | getDistanceThreshold () |
| Get the distance to model threshold, as set by the user. More... | |
| void | setMaxIterations (int max_iterations) |
| Set the maximum number of iterations. More... | |
| int | getMaxIterations () |
| Get the maximum number of iterations, as set by the user. More... | |
| void | setProbability (float probability) |
| Set the desired probability of choosing at least one sample free from outliers. More... | |
| float | getProbability () |
| Obtain the probability of choosing at least one sample free from outliers, as set by the user. More... | |
| virtual bool | computeModel (int debug_verbosity_level=0)=0 |
| Compute the actual model. More... | |
| void | getModel (Indices &model) |
| Return the best model found so far. More... | |
| IndicesPtr | getInliers () |
| Return the best set of inliers found so far for this model. More... | |
| IndicesPtr | getInliersStencil () |
| void | getModelCoefficients (Coefficients &model_coefficients) |
| Return the model coefficients of the best model found so far. More... | |
Protected Attributes | |
| SampleConsensusModelPtr | sac_model_ |
| The underlying data model used (what is it that we attempt to search for). More... | |
| Indices | model_ |
| The model found after the last computeModel () as point cloud indices. More... | |
| IndicesPtr | inliers_ |
| The indices of the points that were chosen as inliers after the last call. More... | |
| IndicesPtr | inliers_stencil_ |
| Coefficients | model_coefficients_ |
| The coefficients of our model computed directly from the model found. More... | |
| float | probability_ |
| Desired probability of choosing at least one sample free from outliers. More... | |
| int | iterations_ |
| Total number of internal loop iterations that we've done so far. More... | |
| float | threshold_ |
| Distance to model threshold. More... | |
| int | max_iterations_ |
| Maximum number of iterations before giving up. More... | |
| using pcl::cuda::SampleConsensus< Storage >::Coefficients = typename Storage<float>::type |
| using pcl::cuda::SampleConsensus< Storage >::CoefficientsConstPtr = shared_ptr <const Coefficients> |
| using pcl::cuda::SampleConsensus< Storage >::CoefficientsPtr = shared_ptr <Coefficients> |
| using pcl::cuda::SampleConsensus< Storage >::ConstPtr = shared_ptr<const SampleConsensus> |
| using pcl::cuda::SampleConsensus< Storage >::Ptr = shared_ptr<SampleConsensus> |
|
inline |
|
inline |
|
virtualdefault |
Destructor for base SAC.
|
pure virtual |
Compute the actual model.
Pure virtual.
Implemented in pcl::cuda::RandomSampleConsensus< Storage >, and pcl::cuda::MultiRandomSampleConsensus< Storage >.
|
inline |
Get the distance to model threshold, as set by the user.
Definition at line 99 of file sac.h.
References pcl::cuda::SampleConsensus< Storage >::threshold_.
|
inline |
Return the best set of inliers found so far for this model.
Definition at line 155 of file sac.h.
References pcl::cuda::SampleConsensus< Storage >::inliers_.
|
inline |
Definition at line 160 of file sac.h.
References pcl::cuda::SampleConsensus< Storage >::inliers_stencil_.
|
inline |
Get the maximum number of iterations, as set by the user.
Definition at line 109 of file sac.h.
References pcl::cuda::SampleConsensus< Storage >::max_iterations_.
|
inline |
Return the best model found so far.
| model | the resultant model |
Definition at line 148 of file sac.h.
References pcl::cuda::SampleConsensus< Storage >::model_.
|
inline |
Return the model coefficients of the best model found so far.
| model_coefficients | the resultant model coefficients |
Definition at line 166 of file sac.h.
References pcl::cuda::SampleConsensus< Storage >::model_coefficients_.
|
inline |
Obtain the probability of choosing at least one sample free from outliers, as set by the user.
Definition at line 124 of file sac.h.
References pcl::cuda::SampleConsensus< Storage >::probability_.
|
inline |
Set the distance to model threshold.
| threshold | distance to model threshold |
Definition at line 95 of file sac.h.
References pcl::cuda::SampleConsensus< Storage >::threshold_.
|
inline |
Set the maximum number of iterations.
| max_iterations | maximum number of iterations |
Definition at line 105 of file sac.h.
References pcl::cuda::SampleConsensus< Storage >::max_iterations_.
|
inline |
Set the desired probability of choosing at least one sample free from outliers.
| probability | the desired probability of choosing at least one sample free from outliers |
Definition at line 118 of file sac.h.
References pcl::cuda::SampleConsensus< Storage >::probability_.
|
protected |
The indices of the points that were chosen as inliers after the last call.
Definition at line 179 of file sac.h.
Referenced by pcl::cuda::SampleConsensus< Storage >::getInliers().
|
protected |
Definition at line 180 of file sac.h.
Referenced by pcl::cuda::SampleConsensus< Storage >::getInliersStencil().
|
protected |
|
protected |
Maximum number of iterations before giving up.
Definition at line 195 of file sac.h.
Referenced by pcl::cuda::SampleConsensus< Storage >::getMaxIterations(), pcl::cuda::MultiRandomSampleConsensus< Storage >::MultiRandomSampleConsensus(), pcl::cuda::RandomSampleConsensus< Storage >::RandomSampleConsensus(), and pcl::cuda::SampleConsensus< Storage >::setMaxIterations().
|
protected |
The model found after the last computeModel () as point cloud indices.
Definition at line 176 of file sac.h.
Referenced by pcl::cuda::SampleConsensus< Storage >::getModel().
|
protected |
The coefficients of our model computed directly from the model found.
Definition at line 183 of file sac.h.
Referenced by pcl::cuda::SampleConsensus< Storage >::getModelCoefficients().
|
protected |
Desired probability of choosing at least one sample free from outliers.
Definition at line 186 of file sac.h.
Referenced by pcl::cuda::SampleConsensus< Storage >::getProbability(), and pcl::cuda::SampleConsensus< Storage >::setProbability().
|
protected |
|
protected |
Distance to model threshold.
Definition at line 192 of file sac.h.
Referenced by pcl::cuda::SampleConsensus< Storage >::getDistanceThreshold(), and pcl::cuda::SampleConsensus< Storage >::setDistanceThreshold().