Public Types | Public Member Functions | Public Attributes | Protected Attributes
Model< ModelT, DatumT > Class Template Reference

#include <model.h>

List of all members.

Public Types

typedef DatumT Datum
typedef ModelT ModelRep

Public Member Functions

virtual void compute (const DataVec &image_matches)=0
 inicializations that cannot be in constructor.
double getError () const
 sum of errors on all data points.
int getInlierCount () const
 number of inliers.
double getInlierError () const
 sum of errors on inlier data points.
const vector< bool > & getInlierMask () const
 mask that masks-out all outliers.
DataVec getInliers (const DataVec &all_data)
 filter-out outliers.
const ModelT & getModel () const
const DataVecgetModelData () const
int getSize () const
 Model (int _size, const DataVec &_model_data, const ModelT &_model)

Public Attributes

EIGEN_MAKE_ALIGNED_OPERATOR_NEW
typedef ALIGNED< DatumT >
::vector 
DataVec

Protected Attributes

double all_data_error
double error
DataVec::size_type inlier_count
vector< bool > inlier_mask
ModelT model
const DataVec model_data
const unsigned int size

Detailed Description

template<class ModelT, class DatumT>
class Model< ModelT, DatumT >

Todo:
check that all selected data are inliers in method compute

Definition at line 23 of file model.h.


Member Typedef Documentation

template<class ModelT, class DatumT>
typedef DatumT Model< ModelT, DatumT >::Datum

Definition at line 28 of file model.h.

template<class ModelT, class DatumT>
typedef ModelT Model< ModelT, DatumT >::ModelRep

Definition at line 27 of file model.h.


Constructor & Destructor Documentation

template<class ModelT, class DatumT>
Model< ModelT, DatumT >::Model ( int  _size,
const DataVec _model_data,
const ModelT &  _model 
) [inline]

Definition at line 38 of file model.h.


Member Function Documentation

template<class ModelT, class DatumT>
virtual void Model< ModelT, DatumT >::compute ( const DataVec image_matches) [pure virtual]

inicializations that cannot be in constructor.

Must be called before getError, getInlierMask, getInlierCount, getInliers. Can be called multiple times (if the matches change).

Parameters:
image_matchesall matches in the image pair.
template<class ModelT, class DatumT>
double Model< ModelT, DatumT >::getError ( ) const [inline]

sum of errors on all data points.

Definition at line 52 of file model.h.

template<class ModelT, class DatumT>
int Model< ModelT, DatumT >::getInlierCount ( ) const [inline]

number of inliers.

Definition at line 70 of file model.h.

template<class ModelT, class DatumT>
double Model< ModelT, DatumT >::getInlierError ( ) const [inline]

sum of errors on inlier data points.

Definition at line 58 of file model.h.

template<class ModelT, class DatumT>
const vector<bool>& Model< ModelT, DatumT >::getInlierMask ( ) const [inline]

mask that masks-out all outliers.

Definition at line 64 of file model.h.

template<class ModelT, class DatumT>
DataVec Model< ModelT, DatumT >::getInliers ( const DataVec all_data) [inline]

filter-out outliers.

Parameters:
all_datathis must be identical to what was given in the most recent call to compute.

Definition at line 81 of file model.h.

template<class ModelT, class DatumT>
const ModelT& Model< ModelT, DatumT >::getModel ( ) const [inline]

Definition at line 98 of file model.h.

template<class ModelT, class DatumT>
const DataVec& Model< ModelT, DatumT >::getModelData ( ) const [inline]

Definition at line 101 of file model.h.

template<class ModelT, class DatumT>
int Model< ModelT, DatumT >::getSize ( ) const [inline]

Definition at line 94 of file model.h.


Member Data Documentation

template<class ModelT, class DatumT>
double Model< ModelT, DatumT >::all_data_error [protected]

Definition at line 34 of file model.h.

template<class ModelT, class DatumT>
EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef ALIGNED<DatumT>::vector Model< ModelT, DatumT >::DataVec

Definition at line 26 of file model.h.

template<class ModelT, class DatumT>
double Model< ModelT, DatumT >::error [protected]

Definition at line 33 of file model.h.

template<class ModelT, class DatumT>
DataVec::size_type Model< ModelT, DatumT >::inlier_count [protected]

Definition at line 36 of file model.h.

template<class ModelT, class DatumT>
vector<bool> Model< ModelT, DatumT >::inlier_mask [protected]

Definition at line 35 of file model.h.

template<class ModelT, class DatumT>
ModelT Model< ModelT, DatumT >::model [protected]

Definition at line 32 of file model.h.

template<class ModelT, class DatumT>
const DataVec Model< ModelT, DatumT >::model_data [protected]

Definition at line 31 of file model.h.

template<class ModelT, class DatumT>
const unsigned int Model< ModelT, DatumT >::size [protected]

Definition at line 30 of file model.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines


pose_estimation
Author(s): Jiri Divis/jiridivis@gmail.com
autogenerated on Wed Mar 27 2013 21:00:15