#include <model.h>
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 DataVec & | getModelData () 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 |
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).
image_matches | all matches in the image pair. |
int Model< ModelT, DatumT >::getInlierCount | ( | ) | const [inline] |
double Model< ModelT, DatumT >::getInlierError | ( | ) | const [inline] |
const vector<bool>& Model< ModelT, DatumT >::getInlierMask | ( | ) | const [inline] |
DataVec Model< ModelT, DatumT >::getInliers | ( | const DataVec & | all_data | ) | [inline] |
const DataVec& Model< ModelT, DatumT >::getModelData | ( | ) | const [inline] |
double Model< ModelT, DatumT >::all_data_error [protected] |
DataVec::size_type Model< ModelT, DatumT >::inlier_count [protected] |
vector<bool> Model< ModelT, DatumT >::inlier_mask [protected] |
const DataVec Model< ModelT, DatumT >::model_data [protected] |