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)>;
71 const double distanceThreshold,
72 const unsigned int minimumSizeSamplesToFit,
73 std::vector<size_t>& out_best_inliers,
75 const double prob_good_sample = 0.999,
76 const size_t maxIter = 2000)
const;
std::function< bool(const CMatrixTemplateNumeric< 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...
std::function< void(const CMatrixTemplateNumeric< NUMTYPE > &allData, const std::vector< CMatrixTemplateNumeric< 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...
This base provides a set of functions for maths stuff.
Versatile class for consistent logging and management of output messages.
bool execute(const CMatrixTemplateNumeric< 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, CMatrixTemplateNumeric< 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.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
COutputLogger()
Default class constructor.
A matrix of dynamic size.
typedef void(APIENTRYP PFNGLBLENDCOLORPROC)(GLclampf red
A generic RANSAC implementation with models as matrices.
GLsizei GLsizei GLenum GLenum const GLvoid * data
std::function< void(const CMatrixTemplateNumeric< NUMTYPE > &allData, const std::vector< size_t > &useIndices, std::vector< CMatrixTemplateNumeric< NUMTYPE > > &fitModels)> TRansacFitFunctor
The type of the function passed to mrpt::math::ransac - See the documentation for that method for mor...