Classes | Public Types | Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes
cv::of2::FabMapFBO Class Reference

#include <openfabmap.hpp>

Inherits cv::of2::FabMap.

List of all members.

Classes

struct  WordStats

Public Types

enum  {
  MEAN_FIELD = 1, SAMPLED = 2, NAIVE_BAYES = 4, CHOW_LIU = 8,
  MOTION_MODEL = 16
}

Public Member Functions

 FabMapFBO (const Mat &clTree, double PzGe, double PzGNe, int flags, int numSamples=0, double rejectionThreshold=1e-8, double PsGd=1e-8, int bisectionStart=512, int bisectionIts=9)
virtual ~FabMapFBO ()
virtual void addTraining (const Mat &queryImgDescriptor)
virtual void addTraining (const vector< Mat > &queryImgDescriptors)
virtual void add (const Mat &queryImgDescriptor)
virtual void add (const vector< Mat > &queryImgDescriptors)
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)
void setWordStatistics (const Mat &queryImgDescriptor, multiset< WordStats > &wordData)
double limitbisection (double v, double m)
double bennettInequality (double v, double m, double delta)
void compareImgDescriptor (const Mat &queryImgDescriptor, int queryIndex, const vector< Mat > &testImgDescriptors, vector< IMatch > &matches)
void addImgDescriptor (const Mat &queryImgDescriptor)
virtual double getNewPlaceLikelihood (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)

Static Protected Member Functions

static bool compInfo (const WordStats &first, const WordStats &second)

Protected Attributes

double PsGd
double rejectionThreshold
int bisectionStart
int bisectionIts
double(FabMap::* PzGL )(int q, bool zq, bool zpq, bool Lzq)
Mat clTree
vector< MattrainingImgDescriptors
vector< MattestImgDescriptors
vector< IMatchpriorMatches
double PzGe
double PzGNe
double Pnew
double mBias
double sFactor
int flags
int numSamples

Member Enumeration Documentation

anonymous enum [inherited]
Enumerator:
MEAN_FIELD 
SAMPLED 
NAIVE_BAYES 
CHOW_LIU 
MOTION_MODEL 

Constructor & Destructor Documentation

cv::of2::FabMapFBO::FabMapFBO ( const Mat clTree,
double  PzGe,
double  PzGNe,
int  flags,
int  numSamples = 0,
double  rejectionThreshold = 1e-8,
double  PsGd = 1e-8,
int  bisectionStart = 512,
int  bisectionIts = 9 
)
virtual cv::of2::FabMapFBO::~FabMapFBO ( ) [virtual]

Member Function Documentation

void cv::of2::FabMapFBO::getLikelihoods ( const Mat queryImgDescriptor,
const vector< Mat > &  testImgDescriptors,
vector< IMatch > &  matches 
) [protected, virtual]

Reimplemented from cv::of2::FabMap.

void cv::of2::FabMapFBO::setWordStatistics ( const Mat queryImgDescriptor,
multiset< WordStats > &  wordData 
) [protected]
double cv::of2::FabMapFBO::limitbisection ( double  v,
double  m 
) [protected]
double cv::of2::FabMapFBO::bennettInequality ( double  v,
double  m,
double  delta 
) [protected]
static bool cv::of2::FabMapFBO::compInfo ( const WordStats first,
const WordStats second 
) [static, protected]
virtual void cv::of2::FabMap::addTraining ( const Mat queryImgDescriptor) [virtual, inherited]

Reimplemented in cv::of2::FabMap2.

virtual void cv::of2::FabMap::addTraining ( const vector< Mat > &  queryImgDescriptors) [virtual, inherited]

Reimplemented in cv::of2::FabMap2.

virtual void cv::of2::FabMap::add ( const Mat queryImgDescriptor) [virtual, inherited]

Reimplemented in cv::of2::FabMap2.

virtual void cv::of2::FabMap::add ( const vector< Mat > &  queryImgDescriptors) [virtual, inherited]

Reimplemented in cv::of2::FabMap2.

const vector<Mat>& cv::of2::FabMap::getTrainingImgDescriptors ( ) const [inherited]
const vector<Mat>& cv::of2::FabMap::getTestImgDescriptors ( ) const [inherited]
void cv::of2::FabMap::compare ( const Mat queryImgDescriptor,
vector< IMatch > &  matches,
bool  addQuery = false,
const Mat mask = Mat() 
) [inherited]
void cv::of2::FabMap::compare ( const Mat queryImgDescriptor,
const Mat testImgDescriptors,
vector< IMatch > &  matches,
const Mat mask = Mat() 
) [inherited]
void cv::of2::FabMap::compare ( const Mat queryImgDescriptor,
const vector< Mat > &  testImgDescriptors,
vector< IMatch > &  matches,
const Mat mask = Mat() 
) [inherited]
void cv::of2::FabMap::compare ( const vector< Mat > &  queryImgDescriptors,
vector< IMatch > &  matches,
bool  addQuery = false,
const Mat mask = Mat() 
) [inherited]
void cv::of2::FabMap::compare ( const vector< Mat > &  queryImgDescriptors,
const vector< Mat > &  testImgDescriptors,
vector< IMatch > &  matches,
const Mat mask = Mat() 
) [inherited]
void cv::of2::FabMap::compareImgDescriptor ( const Mat queryImgDescriptor,
int  queryIndex,
const vector< Mat > &  testImgDescriptors,
vector< IMatch > &  matches 
) [protected, inherited]
void cv::of2::FabMap::addImgDescriptor ( const Mat queryImgDescriptor) [protected, inherited]
virtual double cv::of2::FabMap::getNewPlaceLikelihood ( const Mat queryImgDescriptor) [protected, virtual, inherited]

Reimplemented in cv::of2::FabMap2.

void cv::of2::FabMap::normaliseDistribution ( vector< IMatch > &  matches) [protected, inherited]
int cv::of2::FabMap::pq ( int  q) [protected, inherited]
double cv::of2::FabMap::Pzq ( int  q,
bool  zq 
) [protected, inherited]
double cv::of2::FabMap::PzqGzpq ( int  q,
bool  zq,
bool  zpq 
) [protected, inherited]
double cv::of2::FabMap::PzqGeq ( bool  zq,
bool  eq 
) [protected, inherited]
double cv::of2::FabMap::PeqGL ( int  q,
bool  Lzq,
bool  eq 
) [protected, inherited]
double cv::of2::FabMap::PzqGL ( int  q,
bool  zq,
bool  zpq,
bool  Lzq 
) [protected, inherited]
double cv::of2::FabMap::PzqGzpqL ( int  q,
bool  zq,
bool  zpq,
bool  Lzq 
) [protected, inherited]

Member Data Documentation

double cv::of2::FabMapFBO::PsGd [protected]
double(FabMap::* cv::of2::FabMap::PzGL)(int q, bool zq, bool zpq, bool Lzq) [protected, inherited]
Mat cv::of2::FabMap::clTree [protected, inherited]
vector<Mat> cv::of2::FabMap::trainingImgDescriptors [protected, inherited]
vector<Mat> cv::of2::FabMap::testImgDescriptors [protected, inherited]
vector<IMatch> cv::of2::FabMap::priorMatches [protected, inherited]
double cv::of2::FabMap::PzGe [protected, inherited]
double cv::of2::FabMap::PzGNe [protected, inherited]
double cv::of2::FabMap::Pnew [protected, inherited]
double cv::of2::FabMap::mBias [protected, inherited]
double cv::of2::FabMap::sFactor [protected, inherited]
int cv::of2::FabMap::flags [protected, inherited]
int cv::of2::FabMap::numSamples [protected, inherited]

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