#include <itkKdTreeGenerator.h>
Inheritance diagram for itk::Statistics::KdTreeGenerator< TSample >:
Public Types | |
typedef KdTreeGenerator | Self |
typedef Object | Superclass |
typedef SmartPointer< Self > | Pointer |
typedef TSample::MeasurementVectorType | MeasurementVectorType |
typedef TSample::MeasurementType | MeasurementType |
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 * | GetClassName () const |
itkStaticConstMacro (MeasurementVectorSize, unsigned int, TSample::MeasurementVectorSize) | |
void | SetSample (TSample *sample) |
void | SetBucketSize (int size) |
OutputPointer | GetOutput () |
void | Update () |
void | GenerateData () |
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.
Definition at line 63 of file itkKdTreeGenerator.h.
|
Typedef for the k-d tree node type Reimplemented in itk::Statistics::WeightedCentroidKdTreeGenerator< TSample >. Definition at line 94 of file itkKdTreeGenerator.h. |
|
Typedef for the k-d tree Reimplemented in itk::Statistics::WeightedCentroidKdTreeGenerator< TSample >. Definition at line 85 of file itkKdTreeGenerator.h. |
|
Reimplemented in itk::Statistics::WeightedCentroidKdTreeGenerator< TSample >. Definition at line 79 of file itkKdTreeGenerator.h. |
|
typedef alias for the source data container Reimplemented in itk::Statistics::WeightedCentroidKdTreeGenerator< TSample >. Definition at line 78 of file itkKdTreeGenerator.h. |
|
Typedef for the smart pointer to the k-d tree Definition at line 91 of file itkKdTreeGenerator.h. Referenced by itk::Statistics::KdTreeGenerator< TSample >::GetOutput(). |
|
Type alias for the k-d tree type Definition at line 88 of file itkKdTreeGenerator.h. |
|
Reimplemented from itk::Object.
Reimplemented in itk::Statistics::WeightedCentroidKdTreeGenerator< TSample >. Definition at line 69 of file itkKdTreeGenerator.h. |
|
Standard class typedefs Reimplemented from itk::Object.
Reimplemented in itk::Statistics::WeightedCentroidKdTreeGenerator< TSample >. Definition at line 67 of file itkKdTreeGenerator.h. |
|
Typedef for the smart pointer to the Subsample Reimplemented in itk::Statistics::WeightedCentroidKdTreeGenerator< TSample >. Definition at line 100 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 97 of file itkKdTreeGenerator.h. |
|
Reimplemented from itk::Object.
Reimplemented in itk::Statistics::WeightedCentroidKdTreeGenerator< TSample >. Definition at line 68 of file itkKdTreeGenerator.h. |
|
Constructor |
|
Destructor Definition at line 128 of file itkKdTreeGenerator.h. |
|
Runs this k-d tree construction algorithm. |
|
Nonterminal node generation routine Reimplemented in itk::Statistics::WeightedCentroidKdTreeGenerator< TSample >.
|
|
Tree generation loop |
|
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 110 of file itkKdTreeGenerator.h. References itk::Statistics::KdTreeGenerator< TSample >::OutputPointer. |
|
Returns the smart pointer to the internal Subsample object. Definition at line 133 of file itkKdTreeGenerator.h. References itk::Statistics::KdTreeGenerator< TSample >::SubsamplePointer. |
|
Reimplemented in itk::Statistics::WeightedCentroidKdTreeGenerator< TSample >.
|
|
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 114 of file itkKdTreeGenerator.h. References HardConnectedComponentImageFilter::GenerateData(). |
|
The number of measurement vectors in an object of this class. Definition at line 121 of file itkKdTreeGenerator.h. |