![]() |
AliceVision
Photogrammetric Computer Vision Framework
|
AContrario Kernel to solve a translation triplet & structure problem. More...
#include <TranslationTripletKernelACRansac.hpp>
Public Types | |
| using | SolverT = SolverT_ |
| using | ErrorT = SolverT_ |
| using | ModelT = ModelT_ |
Public Member Functions | |
| TranslationTripletKernelACRansac (const Mat &x1, const Mat &x2, const Mat &x3, const std::vector< Mat3 > &vec_KRi, const Mat3 &K, const double ThresholdUpperBound) | |
| std::size_t | getMinimumNbRequiredSamples () const override |
| Return the minimum number of required samples for the solver. More... | |
| 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... | |
| double | error (std::size_t sample, const ModelT_ &model) const override |
| error 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... | |
| std::size_t | nbSamples () const override |
| void | unnormalize (ModelT_ &model) const override |
| Function used to unnormalize the model. More... | |
| double | logalpha0 () const override |
| double | errorVectorDimension () const override |
| Mat3 | normalizer1 () const override |
| double | thresholdNormalizer () const override |
| double | unormalizeError (double val) const override |
| std::size_t | getMinimumNbRequiredSamplesLS () const |
| void | fitLS (const std::vector< std::size_t > &inliers, std::vector< ModelT > &models, const std::vector< double > *weights=nullptr) const |
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 |
| Function used to estimate the weights, typically used by the least square algorithm. More... | |
AContrario Kernel to solve a translation triplet & structure problem.
|
inlinevirtual |
Function used to estimate the weights, typically used by the least square algorithm.
| [in] | model | The model against which the weights are computed. |
| [in] | inliers | The array of the indices of the data to be used. |
| [out] | vec_weights | The array of weight of the same size as inliers. |
| [in] | eps | An optional threshold to max out the value of the threshold (typically to avoid division by zero or too small numbers). |
Implements aliceVision::robustEstimation::IRansacKernel< ModelT_ >.
|
inlineoverridevirtual |
error
| sample | |
| model |
Implements aliceVision::robustEstimation::IRansacKernel< ModelT_ >.
|
inlineoverridevirtual |
Function that computes the estimation error for a given model and all the elements.
| [in] | model | The model to consider. |
| [out] | vec_errors | The vector containing all the estimation errors for every element. |
Implements aliceVision::robustEstimation::IRansacKernel< ModelT_ >.
|
inlineoverridevirtual |
This function is called to estimate the model from the minimum number of sample minSample (i.e. minimal problem solver).
| [in] | samples | A vector containing the indices of the data to be used for the minimal estimation. |
| [out] | models | The model(s) estimated by the minimal solver. |
Implements aliceVision::robustEstimation::IRansacKernel< ModelT_ >.
|
inlinevirtual |
This function is called to estimate the model using a least squared algorithm from a minimum of minSampleLS.
| [in] | inliers | An array containing the indices of the data to use. |
| [out] | models | The model(s) estimated using the least squared algorithm. |
| [in] | weights | An optional array of weights, one for each sample |
Implements aliceVision::robustEstimation::IRansacKernel< ModelT_ >.
|
inlineoverride |
Return the maximum number of models for the solver.
|
inlineoverride |
Return the minimum number of required samples for the solver.
|
inlineoverridevirtual |
Function used to unnormalize the model.
| [in,out] | model | The model to unnormalize. |
Implements aliceVision::robustEstimation::IRansacKernel< ModelT_ >.
1.8.17