27 template <
typename NUMTYPE =
double>
36 const std::vector<size_t>& useIndices,
44 const NUMTYPE distanceThreshold,
unsigned int& out_bestModelIndex,
45 std::vector<size_t>& out_inlierIndices)>;
51 const std::vector<size_t>& useIndices)>;
70 const double distanceThreshold,
71 const unsigned int minimumSizeSamplesToFit,
72 std::vector<size_t>& out_best_inliers,
74 const double prob_good_sample = 0.999,
75 const size_t maxIter = 2000)
const;
std::function< bool(const CMatrixDynamic< NUMTYPE > &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...
This base provides a set of functions for maths stuff.
Versatile class for consistent logging and management of output messages.
std::function< void(const CMatrixDynamic< NUMTYPE > &allData, const std::vector< size_t > &useIndices, std::vector< CMatrixDynamic< NUMTYPE > > &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.
A generic RANSAC implementation with models as matrices.
bool execute(const CMatrixDynamic< NUMTYPE > &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, CMatrixDynamic< NUMTYPE > &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.
static struct FontData data
std::function< void(const CMatrixDynamic< NUMTYPE > &allData, const std::vector< CMatrixDynamic< NUMTYPE > > &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...