#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 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.
|
Reimplemented from itk::Object.
Reimplemented in itk::Statistics::WeightedCentroidKdTreeGenerator< TSample >. Definition at line 70 of file itkKdTreeGenerator.h. |
|
Typedef for the k-d tree node type Reimplemented in itk::Statistics::WeightedCentroidKdTreeGenerator< TSample >. Definition at line 95 of file itkKdTreeGenerator.h. |
|
Typedef for the k-d tree Reimplemented in itk::Statistics::WeightedCentroidKdTreeGenerator< TSample >. Definition at line 86 of file itkKdTreeGenerator.h. |
|
Reimplemented in itk::Statistics::WeightedCentroidKdTreeGenerator< TSample >. Definition at line 80 of file itkKdTreeGenerator.h. |
|
typedef alias for the source data container Reimplemented in itk::Statistics::WeightedCentroidKdTreeGenerator< TSample >. Definition at line 79 of file itkKdTreeGenerator.h. |
|
Typedef for the smart pointer to the k-d tree Definition at line 92 of file itkKdTreeGenerator.h. Referenced by itk::Statistics::KdTreeGenerator< TSample >::GetOutput(). |
|
Type alias for the k-d tree type Definition at line 89 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 101 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 98 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 129 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 111 of file itkKdTreeGenerator.h. References itk::Statistics::KdTreeGenerator< TSample >::OutputPointer. |
|
Returns the smart pointer to the internal Subsample object. Definition at line 134 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 115 of file itkKdTreeGenerator.h. References HardConnectedComponentImageFilter::GenerateData(). |
|
The number of measurement vectors in an object of this class. Definition at line 122 of file itkKdTreeGenerator.h. |