OKVIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Protected Attributes | List of all members
opengv::sac_problems::absolute_pose::FrameAbsolutePoseSacProblem Class Reference

Provides functions for fitting an absolute-pose model to a set of bearing-vector to point correspondences, using different algorithms (central and non-central ones). Used in a sample-consenus paradigm for rejecting outlier correspondences. More...

#include <FrameAbsolutePoseSacProblem.hpp>

Inheritance diagram for opengv::sac_problems::absolute_pose::FrameAbsolutePoseSacProblem:

Public Types

typedef AbsolutePoseSacProblem base_t
 

Public Member Functions

 FrameAbsolutePoseSacProblem (adapter_t &adapter, algorithm_t algorithm)
 Constructor. More...
 
 FrameAbsolutePoseSacProblem (adapter_t &adapter, algorithm_t algorithm, const std::vector< int > &indices)
 Constructor. More...
 
virtual ~FrameAbsolutePoseSacProblem ()
 
virtual void getSelectedDistancesToModel (const model_t &model, const std::vector< int > &indices, std::vector< double > &scores) const
 Compute the distances of all samples whith respect to given model coefficients. More...
 

Protected Attributes

opengv::absolute_pose::FrameNoncentralAbsoluteAdapteradapterDerived_
 The adapter holding the bearing, correspondences etc. More...
 

Detailed Description

Provides functions for fitting an absolute-pose model to a set of bearing-vector to point correspondences, using different algorithms (central and non-central ones). Used in a sample-consenus paradigm for rejecting outlier correspondences.

Member Typedef Documentation

Constructor & Destructor Documentation

opengv::sac_problems::absolute_pose::FrameAbsolutePoseSacProblem::FrameAbsolutePoseSacProblem ( adapter_t &  adapter,
algorithm_t  algorithm 
)
inline

Constructor.

Parameters
[in]adapterVisitor holding bearing vectors, world points, etc.
[in]algorithmThe algorithm we want to use.
Warning
Only okvis::absolute_pose::FrameNoncentralAbsoluteAdapter supported.
opengv::sac_problems::absolute_pose::FrameAbsolutePoseSacProblem::FrameAbsolutePoseSacProblem ( adapter_t &  adapter,
algorithm_t  algorithm,
const std::vector< int > &  indices 
)
inline

Constructor.

Parameters
[in]adapterVisitor holding bearing vectors, world points, etc.
[in]algorithmThe algorithm we want to use.
[in]indicesA vector of indices to be used from all available correspondences.
Warning
Only okvis::absolute_pose::FrameNoncentralAbsoluteAdapter supported.
virtual opengv::sac_problems::absolute_pose::FrameAbsolutePoseSacProblem::~FrameAbsolutePoseSacProblem ( )
inlinevirtual

Member Function Documentation

virtual void opengv::sac_problems::absolute_pose::FrameAbsolutePoseSacProblem::getSelectedDistancesToModel ( const model_t &  model,
const std::vector< int > &  indices,
std::vector< double > &  scores 
) const
inlinevirtual

Compute the distances of all samples whith respect to given model coefficients.

Parameters
[in]modelThe coefficients of the model hypothesis.
[in]indicesThe indices of the samples of which we compute distances.
[out]scoresThe resulting distances of the selected samples. Low distances mean a good fit.

Member Data Documentation

opengv::absolute_pose::FrameNoncentralAbsoluteAdapter& opengv::sac_problems::absolute_pose::FrameAbsolutePoseSacProblem::adapterDerived_
protected

The adapter holding the bearing, correspondences etc.


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