|
|
| PointFittingRansacKernel (const Mat &x1, const Mat &x2) |
| |
| std::size_t | getMinimumNbRequiredSamples () const override |
| | Return the minimum number of required samples for the solver. More...
|
| |
|
std::size_t | getMinimumNbRequiredSamplesLS () const override |
| |
| std::size_t | getMaximumNbModels () const override |
| | Return the maximum number of models for the solver. More...
|
| |
| void | fit (const std::vector< std::size_t > &samples, std::vector< ModelT_ > &models) const override |
| | This function is called to estimate the model from the minimum number of sample minSample (i.e. minimal problem solver). More...
|
| |
| void | fitLS (const std::vector< std::size_t > &inliers, std::vector< ModelT_ > &models, const std::vector< double > *weights=nullptr) const override |
| | This function is called to estimate the model using a least squared algorithm from a minimum of minSampleLS. More...
|
| |
| void | computeWeights (const ModelT_ &model, const std::vector< std::size_t > &inliers, std::vector< double > &weights, const double eps=0.001) const override |
| | Function used to estimate the weights, typically used by the least square algorithm. More...
|
| |
| double | error (std::size_t sample, const ModelT_ &model) const override |
| | Function that computes the estimation error for a given model and a given element. More...
|
| |
| void | errors (const ModelT_ &model, std::vector< double > &errors) const override |
| | Function that computes the estimation error for a given model and all the elements. More...
|
| |
| virtual void | unnormalize (ModelT_ &model) const =0 |
| | Function used to unnormalize the model. More...
|
| |
| std::size_t | nbSamples () const override |
| | The number of elements in the data. More...
|
| |
| virtual double | logalpha0 () const =0 |
| | Get logalpha0, Alpha0 is used to make the error adaptive to the image size. More...
|
| |
|
virtual double | errorVectorDimension () const =0 |
| |
|
virtual double | unormalizeError (double val) const =0 |
| |
|
virtual Mat3 | normalizer1 () const =0 |
| |
|
virtual double | thresholdNormalizer () const =0 |
| |
| virtual std::size_t | getMinimumNbRequiredSamples () const=0 |
| | Return the minimum number of required samples for the solver. More...
|
| |
| virtual std::size_t | getMinimumNbRequiredSamplesLS () const=0 |
| | Return the minimum number of required samples for the solver Ls. More...
|
| |
| virtual std::size_t | getMaximumNbModels () const=0 |
| | Return the maximum number of models for the solver. More...
|
| |
| virtual std::size_t | nbSamples () const=0 |
| | The number of elements in the data. More...
|
| |
| virtual double | logalpha0 () const=0 |
| | Get logalpha0, Alpha0 is used to make the error adaptive to the image size. More...
|
| |
|
virtual double | errorVectorDimension () const=0 |
| |
|
virtual Mat3 | normalizer1 () const=0 |
| |
|
virtual double | thresholdNormalizer () const=0 |
| |
|
| PointFittingKernel (const Mat &x1, const Mat &x2) |
| |
| std::size_t | getMinimumNbRequiredSamples () const |
| | Return the minimum number of required samples. More...
|
| |
| std::size_t | getMaximumNbModels () const |
| | Return the maximum number of models. More...
|
| |
| std::size_t | nbSamples () const |
| | get the number of putative points More...
|
| |
template<typename SolverT_, typename ErrorT_, typename ModelT_, typename SolverLsT_ = robustEstimation::UndefinedSolver<ModelT_>>
class aliceVision::robustEstimation::PointFittingRansacKernel< SolverT_, ErrorT_, ModelT_, SolverLsT_ >
A virtual kernel used for the ACRANSAC / LORANSAC framework.
- Template Parameters
-
| SolverT_ | The minimal solver able to find a solution from a minimum set of points. |
| ErrorT_ | The functor computing the error for each data sample with respect to the estimated model. |
| UnnormalizerT_ | The functor used to normalize the data before the estimation of the model. |
| ModelT_ | = Mat34Model The type of the model to estimate. |
| SolverLsT_ | = SolverT The least square solver that is used to find a solution from any set of data larger than the minimum required. |
- Note
- Handle data normalization and compute the corresponding logalpha 0 that depends of the error model (point to line, or point to point)