#include <itkKdTree.h>
Inheritance diagram for itk::Statistics::KdTreeNonterminalNode< TSample >:
Public Types | |
typedef KdTreeNode< TSample > | Superclass |
typedef Superclass::MeasurementType | MeasurementType |
typedef Superclass::CentroidType | CentroidType |
typedef Superclass::InstanceIdentifier | InstanceIdentifier |
Public Member Functions | |
KdTreeNonterminalNode (unsigned int partitionDimension, MeasurementType partitionValue, Superclass *left, Superclass *right) | |
virtual | ~KdTreeNonterminalNode () |
virtual bool | IsTerminal () const |
void | GetParameters (unsigned int &partitionDimension, MeasurementType &partitionValue) const |
Superclass * | Left () |
Superclass * | Right () |
const Superclass * | Left () const |
const Superclass * | Right () const |
unsigned int | Size () const |
void | GetWeightedCentroid (CentroidType &) |
void | GetCentroid (CentroidType &) |
InstanceIdentifier | GetInstanceIdentifier (vcl_size_t) const |
void | AddInstanceIdentifier (InstanceIdentifier) |
KdTreeNonterminalNode doesn't store the information related with the centroids. Therefore, the GetWeightedCentroid and the GetCentroid methods are void. This class should have the left and the right children. If we have a sample and want to generate a KdTree without the centroid related information, we can use the KdTreeGenerator.
Definition at line 131 of file itkKdTree.h.
|
Centroid type Reimplemented from itk::Statistics::KdTreeNode< TSample >. Definition at line 135 of file itkKdTree.h. Referenced by itk::Statistics::KdTreeNonterminalNode< TSample >::GetWeightedCentroid(), and itk::Statistics::KdTreeNonterminalNode< TSample >::Size(). |
|
Instance identifier type (index value type for the measurement vector in a sample Reimplemented from itk::Statistics::KdTreeNode< TSample >. Definition at line 136 of file itkKdTree.h. Referenced by itk::Statistics::KdTreeNonterminalNode< TSample >::GetCentroid(), and itk::Statistics::KdTreeNonterminalNode< TSample >::GetInstanceIdentifier(). |
|
Measurement type, not the measurement vector type Reimplemented from itk::Statistics::KdTreeNode< TSample >. Definition at line 134 of file itkKdTree.h. Referenced by itk::Statistics::KdTreeNonterminalNode< TSample >::AddInstanceIdentifier(), and itk::Statistics::KdTreeNonterminalNode< TSample >::IsTerminal(). |
|
|
|
|
Definition at line 143 of file itkKdTree.h. |
|
Add an instance to this node Implements itk::Statistics::KdTreeNode< TSample >. Definition at line 175 of file itkKdTree.h. References itk::Statistics::KdTreeNonterminalNode< TSample >::MeasurementType, and itk::Statistics::KdTreeNonterminalNode< TSample >::Superclass. |
|
Returns the centroid. weighted centroid divided by the size Implements itk::Statistics::KdTreeNode< TSample >. Definition at line 169 of file itkKdTree.h. References itk::Statistics::KdTreeNonterminalNode< TSample >::InstanceIdentifier. |
|
Retuns the instance identifier of the index-th measurement vector Implements itk::Statistics::KdTreeNode< TSample >. Definition at line 172 of file itkKdTree.h. References itk::Statistics::KdTreeNonterminalNode< TSample >::InstanceIdentifier. |
|
Fills the partitionDimension (the dimension that was chosen to split the measurement vectors belong to this node to the left and the right child among k dimensions) and the partitionValue (the measurement value on the partitionDimension divides the left and the right child Implements itk::Statistics::KdTreeNode< TSample >.
|
|
Returns the vector sum of the all measurement vectors under this node Implements itk::Statistics::KdTreeNode< TSample >. Definition at line 166 of file itkKdTree.h. References itk::Statistics::KdTreeNonterminalNode< TSample >::CentroidType. |
|
Returns true if the node is a terminal node, that is a node that doesn't have any child. Implements itk::Statistics::KdTreeNode< TSample >. Definition at line 145 of file itkKdTree.h. References itk::Statistics::KdTreeNonterminalNode< TSample >::MeasurementType, and itk::Statistics::KdTreeNonterminalNode< TSample >::Superclass. |
|
Returns the pointer to the left child of this node Implements itk::Statistics::KdTreeNode< TSample >. Definition at line 157 of file itkKdTree.h. References itk::Statistics::KdTreeNonterminalNode< TSample >::Superclass. |
|
Returns the pointer to the left child of this node Implements itk::Statistics::KdTreeNode< TSample >. Definition at line 151 of file itkKdTree.h. References itk::Statistics::KdTreeNonterminalNode< TSample >::Superclass. |
|
Returns the pointer to the right child of this node Implements itk::Statistics::KdTreeNode< TSample >. Definition at line 160 of file itkKdTree.h. |
|
Returns the pointer to the right child of this node Implements itk::Statistics::KdTreeNode< TSample >. Definition at line 154 of file itkKdTree.h. References itk::Statistics::KdTreeNonterminalNode< TSample >::Superclass. |
|
Returs the number of measurement vectors under this node including its children Implements itk::Statistics::KdTreeNode< TSample >. Definition at line 163 of file itkKdTree.h. References itk::Statistics::KdTreeNonterminalNode< TSample >::CentroidType. |