AliceVision
Photogrammetric Computer Vision Framework
Public Member Functions | List of all members
aliceVision::robustEstimation::ISolver< ModelT_ > Class Template Referenceabstract

Generic solver interface. More...

#include <ISolver.hpp>

Inheritance diagram for aliceVision::robustEstimation::ISolver< ModelT_ >:
aliceVision::robustEstimation::UndefinedSolver< ModelT_ >

Public Member Functions

virtual std::size_t getMinimumNbRequiredSamples () const =0
 Return the minimum number of required samples. More...
 
virtual std::size_t getMaximumNbModels () const =0
 Return the maximum number of models. More...
 
virtual void solve (const Mat &x1, const Mat &x2, std::vector< ModelT_ > &models) const =0
 Solve the problem. More...
 
virtual void solve (const Mat &x1, const Mat &x2, std::vector< ModelT_ > &models, const std::vector< double > &weights) const =0
 Solve the problem. More...
 

Detailed Description

template<typename ModelT_>
class aliceVision::robustEstimation::ISolver< ModelT_ >

Generic solver interface.

Member Function Documentation

◆ getMaximumNbModels()

template<typename ModelT_ >
virtual std::size_t aliceVision::robustEstimation::ISolver< ModelT_ >::getMaximumNbModels ( ) const
pure virtual

◆ getMinimumNbRequiredSamples()

template<typename ModelT_ >
virtual std::size_t aliceVision::robustEstimation::ISolver< ModelT_ >::getMinimumNbRequiredSamples ( ) const
pure virtual

◆ solve() [1/2]

template<typename ModelT_ >
virtual void aliceVision::robustEstimation::ISolver< ModelT_ >::solve ( const Mat &  x1,
const Mat &  x2,
std::vector< ModelT_ > &  models 
) const
pure virtual

Solve the problem.

Parameters
[in]x1A 2xN matrix of column vectors.
[in]x2A 2xN (relative pose) or 3xN (resection) matrix of column vectors.
[out]modelsA vector into which the computed models are stored.

Implemented in aliceVision::robustEstimation::UndefinedSolver< robustEstimation::Mat3Model >, aliceVision::robustEstimation::UndefinedSolver< robustEstimation::Mat34Model >, and aliceVision::robustEstimation::UndefinedSolver< ModelT_ >.

◆ solve() [2/2]

template<typename ModelT_ >
virtual void aliceVision::robustEstimation::ISolver< ModelT_ >::solve ( const Mat &  x1,
const Mat &  x2,
std::vector< ModelT_ > &  models,
const std::vector< double > &  weights 
) const
pure virtual

Solve the problem.

Parameters
[in]x1A 2xN matrix of column vectors.
[in]x2A 2xN (relative pose) or 3xN (resection) matrix of column vectors.
[out]modelsA vector into which the computed models are stored.
[in]weights.

Implemented in aliceVision::robustEstimation::UndefinedSolver< robustEstimation::Mat3Model >, aliceVision::robustEstimation::UndefinedSolver< robustEstimation::Mat34Model >, and aliceVision::robustEstimation::UndefinedSolver< ModelT_ >.


The documentation for this class was generated from the following file: