28 return dataset.
cols();
45 typename NUMTYPE = double,
typename DATASET = CMatrixDynamic<NUMTYPE>,
46 typename MODEL = CMatrixDynamic<NUMTYPE>>
55 const DATASET& allData,
const std::vector<size_t>& useIndices,
56 std::vector<MODEL>& fitModels)>;
61 const DATASET& allData,
const std::vector<MODEL>& testModels,
62 const NUMTYPE distanceThreshold,
unsigned int& out_bestModelIndex,
63 std::vector<size_t>& out_inlierIndices)>;
68 const DATASET& allData,
const std::vector<size_t>& useIndices)>;
87 const double distanceThreshold,
88 const unsigned int minimumSizeSamplesToFit,
89 std::vector<size_t>& out_best_inliers, MODEL& out_best_model,
90 const double prob_good_sample = 0.999,
91 const size_t maxIter = 2000)
const;
std::function< void(const DATASET &allData, const std::vector< MODEL > &testModels, const NUMTYPE distanceThreshold, unsigned int &out_bestModelIndex, std::vector< size_t > &out_inlierIndices)> TRansacDistanceFunctor
The type of the function passed to mrpt::math::ransac - See the documentation for that method for mor...
size_t ransacDatasetSize(const CMatrixDynamic< T > &dataset)
Define overloaded functions for user types as required.
This base provides a set of functions for maths stuff.
Versatile class for consistent logging and management of output messages.
size_type cols() const
Number of columns in the matrix.
std::function< void(const DATASET &allData, const std::vector< size_t > &useIndices, std::vector< MODEL > &fitModels)> TRansacFitFunctor
The type of the function passed to mrpt::math::ransac - See the documentation for that method for mor...
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
COutputLogger()
Default class constructor.
bool execute(const DATASET &data, const TRansacFitFunctor &fit_func, const TRansacDistanceFunctor &dist_func, const TRansacDegenerateFunctor °en_func, const double distanceThreshold, const unsigned int minimumSizeSamplesToFit, std::vector< size_t > &out_best_inliers, MODEL &out_best_model, const double prob_good_sample=0.999, const size_t maxIter=2000) const
An implementation of the RANSAC algorithm for robust fitting of models to data.
A generic RANSAC implementation.
This template class provides the basic functionality for a general 2D any-size, resizable container o...
std::function< bool(const DATASET &allData, const std::vector< size_t > &useIndices)> TRansacDegenerateFunctor
The type of the function passed to mrpt::math::ransac - See the documentation for that method for mor...
static struct FontData data