Public Types |
typedef KdTree | Self |
typedef Object | Superclass |
typedef SmartPointer< Self > | Pointer |
typedef TSample | SampleType |
typedef TSample::MeasurementVectorType | MeasurementVectorType |
typedef TSample::MeasurementType | MeasurementType |
typedef TSample::InstanceIdentifier | InstanceIdentifier |
typedef EuclideanDistance<
MeasurementVectorType > | DistanceMetricType |
typedef KdTreeNode< TSample > | KdTreeNodeType |
typedef std::pair< InstanceIdentifier,
double > | NeighborType |
Public Methods |
virtual const char * | GetClassName () const |
| itkStaticConstMacro (MeasurementVectorSize, unsigned int, TSample::MeasurementVectorSize) |
void | SetBucketSize (unsigned int size) |
void | SetSample (TSample *sample) |
TSample * | GetSample () |
KdTreeNodeType * | GetEmptyTerminalNode () |
void | SetRoot (KdTreeNodeType *root) |
KdTreeNodeType * | GetRoot () |
MeasurementVectorType & | GetMeasurementVector (InstanceIdentifier id) |
DistanceMetricType * | GetDistanceMetric () |
bool | BallWithinBounds (MeasurementVectorType &query, MeasurementVectorType &lowerBound, MeasurementVectorType &upperBound) |
bool | BoundsOverlapBall (MeasurementVectorType &query, MeasurementVectorType &lowerBound, MeasurementVectorType &upperBound) |
void | Search (MeasurementVectorType &query, unsigned int k) |
NearestNeighbors & | GetSearchResult () |
int | GetNumberOfVisits () |
void | DeleteNode (KdTreeNodeType *node) |
void | PrintTree (KdTreeNodeType *node, int level, unsigned int activeDimension) |
Static Public Methods |
Pointer | New () |
Protected Methods |
| KdTree () |
virtual | ~KdTree () |
void | PrintSelf (std::ostream &os, Indent indent) const |
int | SearchLoop (KdTreeNodeType *node, MeasurementVectorType &query, MeasurementVectorType &lowerBound, MeasurementVectorType &upperBound) |
void | DumpVector (MeasurementVectorType &vec) |