Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

KDTree Class Reference

#include <KDTree.h>


Detailed Description

Definition at line 7 of file KDTree.h.

List of all members.

Public Member Functions

 KDTree (const std::vector< keypoint * > &C)
 ~KDTree ()
bool isleaf ()
const std::vector< keypoint * > & getKeypoints ()
int getAxis ()
double getVariance (int x)
double getMean (int x)
double getMedian ()
KDTreegetLeftChild ()
KDTreegetRightChild ()
int getHeight ()
void getBestNKeypointMatch (keypoint &key, int maxSearches, int n)

Private Member Functions

void makeLeaf ()
void computeMeans (std::vector< std::vector< double > > &vals)
int computeVariances ()
 KDTree (const KDTree &)
KDTreeoperator= (const KDTree &)

Private Attributes

bool isLeaf
std::vector< keypoint * > keypts
int axis
std::vector< double > variance
std::vector< double > mean
double median
KDTreeleftChild
KDTreerightChild
int height

Constructor & Destructor Documentation

KDTree::KDTree ( const std::vector< keypoint * > &  C  ) 

Definition at line 59 of file KDTree.cc.

KDTree::~KDTree (  ) 

Definition at line 150 of file KDTree.cc.

KDTree::KDTree ( const KDTree  )  [private]

Member Function Documentation

void KDTree::computeMeans ( std::vector< std::vector< double > > &  vals  )  [private]

Definition at line 10 of file KDTree.cc.

Referenced by KDTree().

int KDTree::computeVariances (  )  [private]

Definition at line 31 of file KDTree.cc.

Referenced by KDTree().

int KDTree::getAxis (  ) 

Definition at line 174 of file KDTree.cc.

void KDTree::getBestNKeypointMatch ( keypoint key,
int  maxSearches,
int  n 
)

Definition at line 208 of file KDTree.cc.

Referenced by KnowledgeBase::keypointMatching().

int KDTree::getHeight (  ) 

Definition at line 204 of file KDTree.cc.

const std::vector< keypoint * > & KDTree::getKeypoints (  ) 

Definition at line 169 of file KDTree.cc.

KDTree * KDTree::getLeftChild (  ) 

Definition at line 194 of file KDTree.cc.

double KDTree::getMean ( int  x  ) 

Definition at line 184 of file KDTree.cc.

double KDTree::getMedian (  ) 

Definition at line 189 of file KDTree.cc.

KDTree * KDTree::getRightChild (  ) 

Definition at line 199 of file KDTree.cc.

double KDTree::getVariance ( int  x  ) 

Definition at line 179 of file KDTree.cc.

bool KDTree::isleaf (  ) 

Definition at line 164 of file KDTree.cc.

void KDTree::makeLeaf (  )  [private]

Definition at line 155 of file KDTree.cc.

Referenced by KDTree().

KDTree& KDTree::operator= ( const KDTree  )  [private]

Member Data Documentation

int KDTree::axis [private]

Definition at line 11 of file KDTree.h.

Referenced by getAxis(), getBestNKeypointMatch(), and KDTree().

int KDTree::height [private]

Definition at line 17 of file KDTree.h.

Referenced by getHeight(), KDTree(), and makeLeaf().

bool KDTree::isLeaf [private]

Definition at line 9 of file KDTree.h.

Referenced by getBestNKeypointMatch(), isleaf(), KDTree(), and makeLeaf().

std::vector<keypoint*> KDTree::keypts [private]

Definition at line 10 of file KDTree.h.

Referenced by computeMeans(), computeVariances(), getBestNKeypointMatch(), getKeypoints(), and KDTree().

Definition at line 15 of file KDTree.h.

Referenced by getBestNKeypointMatch(), getLeftChild(), KDTree(), makeLeaf(), and ~KDTree().

std::vector<double> KDTree::mean [private]

Definition at line 13 of file KDTree.h.

Referenced by computeMeans(), computeVariances(), and getMean().

double KDTree::median [private]

Definition at line 14 of file KDTree.h.

Referenced by getBestNKeypointMatch(), getMedian(), and KDTree().

Definition at line 16 of file KDTree.h.

Referenced by getBestNKeypointMatch(), getRightChild(), KDTree(), makeLeaf(), and ~KDTree().

std::vector<double> KDTree::variance [private]

Definition at line 12 of file KDTree.h.

Referenced by computeVariances(), getVariance(), and KDTree().


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

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