#include <itkKdTreeGenerator.h>
Inheritance diagram for itk::Statistics::KdTreeGenerator< TSample >:
Public Types | |
typedef KdTreeGenerator | Self |
typedef Object | Superclass |
typedef SmartPointer< Self > | Pointer |
typedef SmartPointer< const Self > | ConstPointer |
typedef TSample::MeasurementVectorType | MeasurementVectorType |
typedef TSample::MeasurementType | MeasurementType |
typedef unsigned int | MeasurementVectorSizeType |
typedef KdTree< TSample > | KdTreeType |
typedef KdTreeType | OutputType |
typedef KdTreeType::Pointer | OutputPointer |
typedef KdTreeType::KdTreeNodeType | KdTreeNodeType |
typedef Subsample< TSample > | SubsampleType |
typedef SubsampleType::Pointer | SubsamplePointer |
Public Member Functions | |
virtual const char * | GetNameOfClass () const |
void | SetSample (TSample *sample) |
void | SetBucketSize (int size) |
OutputPointer | GetOutput () |
void | Update () |
void | GenerateData () |
virtual unsigned int | GetMeasurementVectorSize () const |
Static Public Member Functions | |
Pointer | New () |
Public Attributes | |
unsigned int | TotalInstance |
Protected Member Functions | |
KdTreeGenerator () | |
virtual | ~KdTreeGenerator () |
void | PrintSelf (std::ostream &os, Indent indent) const |
SubsamplePointer | GetSubsample () |
virtual KdTreeNodeType * | GenerateNonterminalNode (int beginIndex, int endIndex, MeasurementVectorType &lowerBound, MeasurementVectorType &upperBound, int level) |
KdTreeNodeType * | GenerateTreeLoop (int beginIndex, int endIndex, MeasurementVectorType &lowerBound, MeasurementVectorType &upperBound, int level) |
The KdTree object stores measurment vectors in a k-d tree structure that is a binary tree. The partition value is the median value of one of the k dimension (partition dimension). The partition dimension is determined by the spread of measurement values in each dimension. The partition dimension is the dimension has the widest spread. Our implementation of k-d tree doesn't have any construction or insertion logic. Users should use this class or the WeightedCentroidKdTreeGenerator class.
The number of the measurement vectors in a terminal node is set by the SetBucketSize method. If we use too small number for this, it might cause computational overhead to calculate bound conditions. However, too large number will cause more distance calculation between the measurement vectors in a terminal node and the query point.
To run this generator, users should provides the bucket size (SetBucketSize method) and the input sample (SetSample method). The Update method will run this generator. To get the resulting KdTree object, call the GetOutput method.
Recent API changes: The static const macro to get the length of a measurement vector, 'MeasurementVectorSize' has been removed to allow the length of a measurement vector to be specified at run time. It is now obtained from the sample set as input. You may query this length using the function GetMeasurementVectorSize().
Definition at line 69 of file itkKdTreeGenerator.h.
|
Reimplemented from itk::Object. Reimplemented in itk::Statistics::WeightedCentroidKdTreeGenerator< TSample >. Definition at line 76 of file itkKdTreeGenerator.h. |
|
Typedef for the k-d tree node type Reimplemented in itk::Statistics::WeightedCentroidKdTreeGenerator< TSample >. Definition at line 101 of file itkKdTreeGenerator.h. |
|
Typedef for the k-d tree Reimplemented in itk::Statistics::WeightedCentroidKdTreeGenerator< TSample >. Definition at line 92 of file itkKdTreeGenerator.h. |
|
Reimplemented in itk::Statistics::WeightedCentroidKdTreeGenerator< TSample >. Definition at line 86 of file itkKdTreeGenerator.h. |
|
Typedef for the length of each measurement vector Definition at line 89 of file itkKdTreeGenerator.h. |
|
typedef alias for the source data container Reimplemented in itk::Statistics::WeightedCentroidKdTreeGenerator< TSample >. Definition at line 85 of file itkKdTreeGenerator.h. |
|
Typedef for the smart pointer to the k-d tree Definition at line 98 of file itkKdTreeGenerator.h. Referenced by itk::Statistics::KdTreeGenerator< TSample >::GetOutput(). |
|
Type alias for the k-d tree type Definition at line 95 of file itkKdTreeGenerator.h. |
|
Reimplemented from itk::Object. Reimplemented in itk::Statistics::WeightedCentroidKdTreeGenerator< TSample >. Definition at line 75 of file itkKdTreeGenerator.h. |
|
Standard class typedefs Reimplemented from itk::Object. Reimplemented in itk::Statistics::WeightedCentroidKdTreeGenerator< TSample >. Definition at line 73 of file itkKdTreeGenerator.h. |
|
Typedef for the smart pointer to the Subsample Reimplemented in itk::Statistics::WeightedCentroidKdTreeGenerator< TSample >. Definition at line 107 of file itkKdTreeGenerator.h. Referenced by itk::Statistics::KdTreeGenerator< TSample >::GetSubsample(). |
|
Typedef for the internal Subsample Reimplemented in itk::Statistics::WeightedCentroidKdTreeGenerator< TSample >. Definition at line 104 of file itkKdTreeGenerator.h. |
|
Reimplemented from itk::Object. Reimplemented in itk::Statistics::WeightedCentroidKdTreeGenerator< TSample >. Definition at line 74 of file itkKdTreeGenerator.h. |
|
Constructor |
|
Destructor Definition at line 139 of file itkKdTreeGenerator.h. |
|
Runs this k-d tree construction algorithm. |
|
Nonterminal node generation routine Reimplemented in itk::Statistics::WeightedCentroidKdTreeGenerator< TSample >. |
|
Tree generation loop |
|
Get macro to get the length of the measurement vectors that are being held in the 'sample' that is passed to this class |
|
Run-time type information (and related methods) Reimplemented from itk::Object. Reimplemented in itk::Statistics::WeightedCentroidKdTreeGenerator< TSample >. |
|
Returns the pointer to the generated k-d tree. Definition at line 117 of file itkKdTreeGenerator.h. References itk::Statistics::KdTreeGenerator< TSample >::OutputPointer. |
|
Returns the smart pointer to the internal Subsample object. Definition at line 144 of file itkKdTreeGenerator.h. References itk::Statistics::KdTreeGenerator< TSample >::SubsamplePointer. |
|
Method for creation through the object factory. Reimplemented from itk::Object. Reimplemented in itk::Statistics::WeightedCentroidKdTreeGenerator< TSample >. |
|
Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes. Reimplemented from itk::Object. Reimplemented in itk::Statistics::WeightedCentroidKdTreeGenerator< TSample >. |
|
Sets the number of measurement vectors that can be stored in a terminal node. |
|
Sets the input sample that provides the measurement vectors. |
|
Runs this k-d tree construction algorithm. Definition at line 121 of file itkKdTreeGenerator.h. |
|
The number of measurement vectors in an object of this class. Definition at line 128 of file itkKdTreeGenerator.h. |