OpenCV  2.4.13
Open Source Computer Vision
cv::of2::FabMap2 Class Reference

#include <openfabmap.hpp>

Inheritance diagram for cv::of2::FabMap2:
cv::of2::FabMap

Public Member Functions

 FabMap2 (const Mat &clTree, double PzGe, double PzGNe, int flags)
 
virtual ~FabMap2 ()
 
void addTraining (const Mat &queryImgDescriptors)
 
void addTraining (const vector< Mat > &queryImgDescriptors)
 
void add (const Mat &queryImgDescriptors)
 
void add (const vector< Mat > &queryImgDescriptors)
 
- Public Member Functions inherited from cv::of2::FabMap
 FabMap (const Mat &clTree, double PzGe, double PzGNe, int flags, int numSamples=0)
 
virtual ~FabMap ()
 
const vector< Mat > & getTrainingImgDescriptors () const
 
const vector< Mat > & getTestImgDescriptors () const
 
void compare (const Mat &queryImgDescriptor, vector< IMatch > &matches, bool addQuery=false, const Mat &mask=Mat())
 
void compare (const Mat &queryImgDescriptor, const Mat &testImgDescriptors, vector< IMatch > &matches, const Mat &mask=Mat())
 
void compare (const Mat &queryImgDescriptor, const vector< Mat > &testImgDescriptors, vector< IMatch > &matches, const Mat &mask=Mat())
 
void compare (const vector< Mat > &queryImgDescriptors, vector< IMatch > &matches, bool addQuery=false, const Mat &mask=Mat())
 
void compare (const vector< Mat > &queryImgDescriptors, const vector< Mat > &testImgDescriptors, vector< IMatch > &matches, const Mat &mask=Mat())
 

Protected Member Functions

void getLikelihoods (const Mat &queryImgDescriptor, const vector< Mat > &testImgDescriptors, vector< IMatch > &matches)
 
double getNewPlaceLikelihood (const Mat &queryImgDescriptor)
 
void getIndexLikelihoods (const Mat &queryImgDescriptor, vector< double > &defaults, map< int, vector< int > > &invertedMap, vector< IMatch > &matches)
 
void addToIndex (const Mat &queryImgDescriptor, vector< double > &defaults, map< int, vector< int > > &invertedMap)
 
- Protected Member Functions inherited from cv::of2::FabMap
void compareImgDescriptor (const Mat &queryImgDescriptor, int queryIndex, const vector< Mat > &testImgDescriptors, vector< IMatch > &matches)
 
void addImgDescriptor (const Mat &queryImgDescriptor)
 
void normaliseDistribution (vector< IMatch > &matches)
 
int pq (int q)
 
double Pzq (int q, bool zq)
 
double PzqGzpq (int q, bool zq, bool zpq)
 
double PzqGeq (bool zq, bool eq)
 
double PeqGL (int q, bool Lzq, bool eq)
 
double PzqGL (int q, bool zq, bool zpq, bool Lzq)
 
double PzqGzpqL (int q, bool zq, bool zpq, bool Lzq)
 

Protected Attributes

vector< double > d1
 
vector< double > d2
 
vector< double > d3
 
vector< double > d4
 
vector< vector< int > > children
 
vector< double > trainingDefaults
 
map< int, vector< int > > trainingInvertedMap
 
vector< double > testDefaults
 
map< int, vector< int > > testInvertedMap
 
- Protected Attributes inherited from cv::of2::FabMap
double(FabMap::* PzGL )(int q, bool zq, bool zpq, bool Lzq)
 
Mat clTree
 
vector< Mat > trainingImgDescriptors
 
vector< Mat > testImgDescriptors
 
vector< IMatch > priorMatches
 
double PzGe
 
double PzGNe
 
double Pnew
 
double mBias
 
double sFactor
 
int flags
 
int numSamples
 

Additional Inherited Members

- Public Types inherited from cv::of2::FabMap
enum  {
  MEAN_FIELD = 1, SAMPLED = 2, NAIVE_BAYES = 4, CHOW_LIU = 8,
  MOTION_MODEL = 16
}
 

Constructor & Destructor Documentation

cv::of2::FabMap2::FabMap2 ( const Mat &  clTree,
double  PzGe,
double  PzGNe,
int  flags 
)
virtual cv::of2::FabMap2::~FabMap2 ( )
virtual

Member Function Documentation

void cv::of2::FabMap2::add ( const Mat &  queryImgDescriptors)
inlinevirtual

Reimplemented from cv::of2::FabMap.

void cv::of2::FabMap2::add ( const vector< Mat > &  queryImgDescriptors)
virtual

Reimplemented from cv::of2::FabMap.

void cv::of2::FabMap2::addToIndex ( const Mat &  queryImgDescriptor,
vector< double > &  defaults,
map< int, vector< int > > &  invertedMap 
)
protected
void cv::of2::FabMap2::addTraining ( const Mat &  queryImgDescriptors)
inlinevirtual

Reimplemented from cv::of2::FabMap.

void cv::of2::FabMap2::addTraining ( const vector< Mat > &  queryImgDescriptors)
virtual

Reimplemented from cv::of2::FabMap.

void cv::of2::FabMap2::getIndexLikelihoods ( const Mat &  queryImgDescriptor,
vector< double > &  defaults,
map< int, vector< int > > &  invertedMap,
vector< IMatch > &  matches 
)
protected
void cv::of2::FabMap2::getLikelihoods ( const Mat &  queryImgDescriptor,
const vector< Mat > &  testImgDescriptors,
vector< IMatch > &  matches 
)
protectedvirtual

Reimplemented from cv::of2::FabMap.

double cv::of2::FabMap2::getNewPlaceLikelihood ( const Mat &  queryImgDescriptor)
protectedvirtual

Reimplemented from cv::of2::FabMap.

Member Data Documentation

vector<vector<int> > cv::of2::FabMap2::children
protected
vector<double> cv::of2::FabMap2::d1
protected
vector<double> cv::of2::FabMap2::d2
protected
vector<double> cv::of2::FabMap2::d3
protected
vector<double> cv::of2::FabMap2::d4
protected
vector<double> cv::of2::FabMap2::testDefaults
protected
map<int, vector<int> > cv::of2::FabMap2::testInvertedMap
protected
vector<double> cv::of2::FabMap2::trainingDefaults
protected
map<int, vector<int> > cv::of2::FabMap2::trainingInvertedMap
protected

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