Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

KnowledgeBase Class Reference

#include <KnowledgeBase.h>


Detailed Description

Definition at line 23 of file KnowledgeBase.h.

List of all members.

Classes

class  modelMatchingInfo

Public Member Functions

 KnowledgeBase ()
 ~KnowledgeBase ()
void learn (std::vector< keypoint * > &K, matchInfo &mInfo, bool toIntegrate)
void setParameter (const char *paramName, double paramVal)
double getParameter (const char *paramName)
void saveToFile (std::ofstream &outfile)
void readFromFile (std::ifstream &infile)

Private Member Functions

void cleanUpMemory ()
void keypointMatching (std::vector< keypoint * > *newKeys, std::vector< std::vector< std::vector< keypoint * > > > &matches, std::vector< std::vector< std::vector< keypoint * > > > &imageKey, bool objectSpecified, int wantedObjectID)
void modelMatching (size_t numNewKeys, std::vector< std::vector< std::vector< keypoint * > > > &matches, std::vector< std::vector< std::vector< keypoint * > > > &imageKey, std::vector< modelMatchingInfo * > &mminfo)
void rebuildKDTree ()
objectlearn_newObject (std::vector< keypoint * > *newKeys)
objectunlearn_Object (std::vector< keypoint * > *newKeys, int oID)
void unlearn_fromModel (std::vector< keypoint * > *newKeys, model *bestModel, NEWMAT::Matrix *transform, double &s, double &theta, double &tx, double &ty)
modellearn_newModel (std::vector< keypoint * > *newKeys, object *O, std::vector< modelMatchingInfo * > mminfo)
modelunlearn_Model (std::vector< keypoint * > *newKeys, object *O, std::vector< modelMatchingInfo * > mminfo, int mID)
void learn_toModel (std::vector< keypoint * > *newKeys, model *bestModel, NEWMAT::Matrix *transform, double &s, double &theta, double &tx, double &ty)
void learn_toModel (std::vector< keypoint * > *newKeys, model *bestModel, NEWMAT::Matrix *transform)
void unlearn_fromModel (std::vector< keypoint * > *newKeys, model *bestModel, NEWMAT::Matrix *transform)
objectobjectExists (int objectID)
 KnowledgeBase (const KnowledgeBase &)
KnowledgeBase operator= (const KnowledgeBase &)

Private Attributes

size_t maxNumModels
std::vector< keypoint * > keys
std::vector< keygroup * > keygroups
std::vector< model * > models
std::vector< object * > objects
KDTreemyTree
Hashtable< double, CharPtrKey,
hashCharPtrKey,
CharPtrKeyEquals > 
paramHash

Friends

class SiftTekkotsu

Constructor & Destructor Documentation

KnowledgeBase::KnowledgeBase (  ) 

Definition at line 428 of file KnowledgeBase.cc.

KnowledgeBase::~KnowledgeBase (  ) 

Definition at line 434 of file KnowledgeBase.cc.

KnowledgeBase::KnowledgeBase ( const KnowledgeBase  )  [private]

Member Function Documentation

void KnowledgeBase::cleanUpMemory (  )  [private]

Definition at line 438 of file KnowledgeBase.cc.

Referenced by readFromFile(), and ~KnowledgeBase().

double KnowledgeBase::getParameter ( const char *  paramName  ) 

Definition at line 1412 of file KnowledgeBase.cc.

Referenced by SiftTekkotsu::getParameter(), learn(), modelMatching(), and saveToFile().

void KnowledgeBase::keypointMatching ( std::vector< keypoint * > *  newKeys,
std::vector< std::vector< std::vector< keypoint * > > > &  matches,
std::vector< std::vector< std::vector< keypoint * > > > &  imageKey,
bool  objectSpecified,
int  wantedObjectID 
) [private]
void KnowledgeBase::learn ( std::vector< keypoint * > &  K,
matchInfo mInfo,
bool  toIntegrate 
)

Read keypoints

Match keypoints

Match model

Integrate

Rebuild KDTree

Clean up

Definition at line 1072 of file KnowledgeBase.cc.

model * KnowledgeBase::learn_newModel ( std::vector< keypoint * > *  newKeys,
object O,
std::vector< modelMatchingInfo * >  mminfo 
) [private]
object * KnowledgeBase::learn_newObject ( std::vector< keypoint * > *  newKeys  )  [private]

Definition at line 745 of file KnowledgeBase.cc.

Referenced by learn(), and SiftTekkotsu::train_addNewObject().

void KnowledgeBase::learn_toModel ( std::vector< keypoint * > *  newKeys,
model bestModel,
NEWMAT::Matrix transform 
) [private]

Definition at line 1062 of file KnowledgeBase.cc.

void KnowledgeBase::learn_toModel ( std::vector< keypoint * > *  newKeys,
model bestModel,
NEWMAT::Matrix transform,
double &  s,
double &  theta,
double &  tx,
double &  ty 
) [private]

Definition at line 987 of file KnowledgeBase.cc.

Referenced by learn(), learn_toModel(), and SiftTekkotsu::train_addToObject().

void KnowledgeBase::modelMatching ( size_t  numNewKeys,
std::vector< std::vector< std::vector< keypoint * > > > &  matches,
std::vector< std::vector< std::vector< keypoint * > > > &  imageKey,
std::vector< modelMatchingInfo * > &  mminfo 
) [private]
KnowledgeBase KnowledgeBase::operator= ( const KnowledgeBase  )  [private]
void KnowledgeBase::readFromFile ( std::ifstream &  infile  ) 

Definition at line 1461 of file KnowledgeBase.cc.

Referenced by SiftTekkotsu::loadFile().

void KnowledgeBase::rebuildKDTree (  )  [private]
void KnowledgeBase::saveToFile ( std::ofstream &  outfile  ) 

Definition at line 1423 of file KnowledgeBase.cc.

Referenced by SiftTekkotsu::saveToFile().

void KnowledgeBase::setParameter ( const char *  paramName,
double  paramVal 
)

Definition at line 1399 of file KnowledgeBase.cc.

Referenced by KnowledgeBase(), readFromFile(), and SiftTekkotsu::setParameter().

void KnowledgeBase::unlearn_fromModel ( std::vector< keypoint * > *  newKeys,
model bestModel,
NEWMAT::Matrix transform 
) [private]

Definition at line 1066 of file KnowledgeBase.cc.

void KnowledgeBase::unlearn_fromModel ( std::vector< keypoint * > *  newKeys,
model bestModel,
NEWMAT::Matrix transform,
double &  s,
double &  theta,
double &  tx,
double &  ty 
) [private]

Definition at line 889 of file KnowledgeBase.cc.

Referenced by SiftTekkotsu::train_removefromObject(), and unlearn_fromModel().

model * KnowledgeBase::unlearn_Model ( std::vector< keypoint * > *  newKeys,
object O,
std::vector< modelMatchingInfo * >  mminfo,
int  mID 
) [private]

Definition at line 776 of file KnowledgeBase.cc.

Referenced by SiftTekkotsu::train_removeModel().

object * KnowledgeBase::unlearn_Object ( std::vector< keypoint * > *  newKeys,
int  oID 
) [private]

Definition at line 697 of file KnowledgeBase.cc.

Referenced by SiftTekkotsu::train_removeObject().


Friends And Related Function Documentation

friend class SiftTekkotsu [friend]

Definition at line 66 of file KnowledgeBase.h.


Member Data Documentation

Definition at line 46 of file KnowledgeBase.h.

Referenced by cleanUpMemory(), keypointMatching(), and rebuildKDTree().

Hashtable<double, CharPtrKey, hashCharPtrKey, CharPtrKeyEquals> KnowledgeBase::paramHash [private]

Definition at line 47 of file KnowledgeBase.h.

Referenced by cleanUpMemory(), getParameter(), and setParameter().


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

Tekkotsu v5.1CVS
Generated Mon May 9 04:59:10 2016 by Doxygen 1.6.3