#include <KDTree.h>
Public Types | |
| typedef std::vector< KE > | ItemVector_t |
| typedef std::vector< KE >::const_iterator | ItemVectorIt_t |
| typedef std::vector< const KE * > | ItemPtrVector_t |
| typedef std::vector< const KE * >::const_iterator | ItemPtrVectorIt_t |
| typedef std::set< BestMatch< KE >, std::greater< BestMatch< KE > > > | BestMatchSet_t |
| typedef lfeat::bounded_set< BestMatch< KE >, std::greater< BestMatch< KE > > > | BestMatchLimitedSet_t |
| typedef std::list< QueueEntry< KE, VTYPE > > | QueueEntryList_t |
Public Member Functions | |
| KDTree (const ItemVector_t &iElemsList, int iDimensions) | |
| KDTree (const ItemPtrVector_t &iElemsPtrList, int iDimensions) | |
| ~KDTree () | |
| BestMatchSet_t | getNearestNeighboursBBF (const KE &iTarget, int iNbBestMatches, int iNbSearchSteps) |
| double | calcSqDist (const KE *i1, const KE *i2) |
Private Member Functions | |
| void | init (const ItemPtrVector_t &iElemsPtrList) |
| ItemPtrVectorIt_t | choosePivot (const ItemPtrVector_t &iElemsPtrList) |
| void | recurseNearestNeighboursBBF (const KE &iTarget, HyperRectangle< KE, VTYPE > &iHR, BestMatchLimitedSet_t &ioBestMatches, QueueEntryList_t &ioSearchQueue, int &ioRemainingUnqueues) |
Private Attributes | |
| int | _dims |
| const KE * | _pivot |
| int | _splitDim |
| KDTree< KE, VTYPE > * | _leftKD |
| KDTree< KE, VTYPE > * | _rightKD |
|
|||||
|
Definition at line 110 of file KDTree.h. Referenced by KDTreeSpace::KDTree< KE, VTYPE >::getNearestNeighboursBBF(), and KDTreeSpace::KDTree< KE, VTYPE >::recurseNearestNeighboursBBF(). |
|
|||||
|
|
|
|||||
|
Definition at line 107 of file KDTree.h. Referenced by KDTreeSpace::KDTree< KE, VTYPE >::init(), and KDTreeSpace::KDTree< KE, VTYPE >::KDTree(). |
|
|||||
|
Definition at line 108 of file KDTree.h. Referenced by KDTreeSpace::KDTree< KE, VTYPE >::choosePivot(), and KDTreeSpace::KDTree< KE, VTYPE >::init(). |
|
|||||
|
|
|
|||||
|
Definition at line 106 of file KDTree.h. Referenced by KDTreeSpace::KDTree< KE, VTYPE >::KDTree(). |
|
|||||
|
|
|
||||||||||||||||
|
Definition at line 38 of file KDTreeImpl.h. References KDTreeSpace::KDTree< KE, VTYPE >::init(), KDTreeSpace::KDTree< KE, VTYPE >::ItemPtrVector_t, and KDTreeSpace::KDTree< KE, VTYPE >::ItemVectorIt_t. |
|
||||||||||||||||
|
Definition at line 68 of file KDTreeImpl.h. References KDTreeSpace::KDTree< KE, VTYPE >::init(). |
|
|||||||||
|
Definition at line 83 of file KDTreeImpl.h. |
|
||||||||||||||||
|
Definition at line 227 of file KDTreeImpl.h. Referenced by KDTreeSpace::KDTree< KE, VTYPE >::recurseNearestNeighboursBBF(). |
|
||||||||||
|
Definition at line 163 of file KDTreeImpl.h. References KDTreeSpace::KDTree< KE, VTYPE >::_dims, KDTreeSpace::KDTree< KE, VTYPE >::_splitDim, KDTreeSpace::KDTree< KE, VTYPE >::ItemPtrVectorIt_t, and celeste::max(). Referenced by KDTreeSpace::KDTree< KE, VTYPE >::init(). |
|
||||||||||||||||||||
|
||||||||||
|
||||||||||||||||||||||||||||
|
|||||
|
Definition at line 138 of file KDTree.h. Referenced by KDTreeSpace::KDTree< KE, VTYPE >::choosePivot(), and KDTreeSpace::KDTree< KE, VTYPE >::getNearestNeighboursBBF(). |
|
|||||
|
Definition at line 145 of file KDTree.h. Referenced by KDTreeSpace::KDTree< KE, VTYPE >::init(). |
|
|||||
|
Definition at line 141 of file KDTree.h. Referenced by KDTreeSpace::KDTree< KE, VTYPE >::init(), and KDTreeSpace::KDTree< KE, VTYPE >::recurseNearestNeighboursBBF(). |
|
|||||
|
Definition at line 146 of file KDTree.h. Referenced by KDTreeSpace::KDTree< KE, VTYPE >::init(). |
|
|||||
|
Definition at line 142 of file KDTree.h. Referenced by KDTreeSpace::KDTree< KE, VTYPE >::choosePivot(), KDTreeSpace::KDTree< KE, VTYPE >::init(), and KDTreeSpace::KDTree< KE, VTYPE >::recurseNearestNeighboursBBF(). |
1.3.9.1