RandomSampleConsensus represents an implementation of the RANSAC (RAndom SAmple Consensus) algorithm, as described in: "Matching with PROSAC – Progressive Sample Consensus", Chum, O. and Matas, J.G., CVPR, I: 220-226 2005. More...
#include <prosac.h>
Public Member Functions | |
bool | computeModel (int debug_verbosity_level=0) |
Compute the actual model and find the inliers. | |
void | getRandomSamples (const IndicesPtr &indices, size_t nr_samples, std::set< int > &indices_subset) |
Get a set of randomly selected indices. | |
ProgressiveSampleConsensus (const SampleConsensusModelPtr &model, double threshold) | |
PROSAC (Progressive SAmple Consensus) main constructor. | |
ProgressiveSampleConsensus (const SampleConsensusModelPtr &model) | |
PROSAC (Progressive SAmple Consensus) main constructor. | |
Private Types | |
typedef SampleConsensusModel < PointT >::Ptr | SampleConsensusModelPtr |
RandomSampleConsensus represents an implementation of the RANSAC (RAndom SAmple Consensus) algorithm, as described in: "Matching with PROSAC – Progressive Sample Consensus", Chum, O. and Matas, J.G., CVPR, I: 220-226 2005.
Definition at line 53 of file prosac.h.
typedef SampleConsensusModel<PointT>::Ptr pcl::ProgressiveSampleConsensus< PointT >::SampleConsensusModelPtr [private] |
Reimplemented from pcl::SampleConsensus< PointT >.
pcl::ProgressiveSampleConsensus< PointT >::ProgressiveSampleConsensus | ( | const SampleConsensusModelPtr & | model | ) | [inline] |
pcl::ProgressiveSampleConsensus< PointT >::ProgressiveSampleConsensus | ( | const SampleConsensusModelPtr & | model, | |
double | threshold | |||
) | [inline] |
bool pcl::ProgressiveSampleConsensus< PointT >::computeModel | ( | int | debug_verbosity_level = 0 |
) | [inline, virtual] |
Compute the actual model and find the inliers.
debug_verbosity_level | enable/disable on-screen debug information and set the verbosity level |
Implements pcl::SampleConsensus< PointT >.
Definition at line 47 of file prosac.hpp.
void pcl::ProgressiveSampleConsensus< PointT >::getRandomSamples | ( | const IndicesPtr & | indices, | |
size_t | nr_samples, | |||
std::set< int > & | indices_subset | |||
) | [inline] |
Get a set of randomly selected indices.
indices | the input indices vector | |
nr_samples | the desired number of point indices to randomly select | |
indices_subset | the resultant output set of randomly selected indices |
Reimplemented from pcl::SampleConsensus< PointT >.