![]() |
Orfeo Toolbox
3.16
|
This is a subclass of the KdTreeNode. More...
#include <itkKdTree.h>
Inheritance diagram for itk::Statistics::KdTreeNonterminalNode< TSample >:
Collaboration diagram for itk::Statistics::KdTreeNonterminalNode< TSample >:Public Types | |
| typedef Superclass::CentroidType | CentroidType |
| typedef Superclass::InstanceIdentifier | InstanceIdentifier |
| typedef Superclass::MeasurementType | MeasurementType |
| typedef KdTreeNode< TSample > | Self |
| typedef KdTreeNode< TSample > | Superclass |
Public Member Functions | |
| KdTreeNonterminalNode (unsigned int partitionDimension, MeasurementType partitionValue, Superclass *left, Superclass *right) | |
| virtual | ~KdTreeNonterminalNode () |
| void | AddInstanceIdentifier (InstanceIdentifier valueId) |
| void | GetCentroid (CentroidType &) |
| InstanceIdentifier | GetInstanceIdentifier (vcl_size_t) const |
| void | GetParameters (unsigned int &partitionDimension, MeasurementType &partitionValue) const |
| void | GetWeightedCentroid (CentroidType &) |
| virtual bool | IsTerminal () const |
| Superclass * | Left () |
| const Superclass * | Left () const |
| Superclass * | Right () |
| const Superclass * | Right () const |
| unsigned int | Size () const |
Private Attributes | |
| InstanceIdentifier | m_InstanceIdentifier |
| Superclass * | m_Left |
| unsigned int | m_PartitionDimension |
| MeasurementType | m_PartitionValue |
| Superclass * | m_Right |
This is a subclass of the KdTreeNode.
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 133 of file itkKdTree.h.
| typedef Superclass::CentroidType itk::Statistics::KdTreeNonterminalNode< TSample >::CentroidType |
Centroid type
Reimplemented from itk::Statistics::KdTreeNode< TSample >.
Definition at line 137 of file itkKdTree.h.
| typedef Superclass::InstanceIdentifier itk::Statistics::KdTreeNonterminalNode< TSample >::InstanceIdentifier |
Instance identifier type (index value type for the measurement vector in a sample
Reimplemented from itk::Statistics::KdTreeNode< TSample >.
Definition at line 138 of file itkKdTree.h.
| typedef Superclass::MeasurementType itk::Statistics::KdTreeNonterminalNode< TSample >::MeasurementType |
Measurement type, not the measurement vector type
Reimplemented from itk::Statistics::KdTreeNode< TSample >.
Definition at line 136 of file itkKdTree.h.
|
inherited |
type alias for itself
Definition at line 69 of file itkKdTree.h.
| typedef KdTreeNode< TSample > itk::Statistics::KdTreeNonterminalNode< TSample >::Superclass |
Definition at line 135 of file itkKdTree.h.
| itk::Statistics::KdTreeNonterminalNode< TSample >::KdTreeNonterminalNode | ( | unsigned int | partitionDimension, |
| MeasurementType | partitionValue, | ||
| Superclass * | left, | ||
| Superclass * | right | ||
| ) |
Definition at line 27 of file itkKdTree.txx.
|
inlinevirtual |
Definition at line 145 of file itkKdTree.h.
|
inlinevirtual |
Add an instance to this node
Implements itk::Statistics::KdTreeNode< TSample >.
Definition at line 180 of file itkKdTree.h.
References itk::Statistics::KdTreeNonterminalNode< TSample >::m_InstanceIdentifier.
|
inlinevirtual |
Returns the centroid. weighted centroid divided by the size
Implements itk::Statistics::KdTreeNode< TSample >.
Definition at line 171 of file itkKdTree.h.
|
inlinevirtual |
Retuns the instance identifier of the index-th measurement vector
Implements itk::Statistics::KdTreeNode< TSample >.
Definition at line 177 of file itkKdTree.h.
References itk::Statistics::KdTreeNonterminalNode< TSample >::m_InstanceIdentifier.
|
virtual |
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 >.
Definition at line 41 of file itkKdTree.txx.
|
inlinevirtual |
Returns the vector sum of the all measurement vectors under this node
Implements itk::Statistics::KdTreeNode< TSample >.
Definition at line 168 of file itkKdTree.h.
|
inlinevirtual |
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 147 of file itkKdTree.h.
|
inlinevirtual |
Returns the pointer to the left child of this node
Implements itk::Statistics::KdTreeNode< TSample >.
Definition at line 153 of file itkKdTree.h.
References itk::Statistics::KdTreeNonterminalNode< TSample >::m_Left.
|
inlinevirtual |
Implements itk::Statistics::KdTreeNode< TSample >.
Definition at line 159 of file itkKdTree.h.
References itk::Statistics::KdTreeNonterminalNode< TSample >::m_Left.
|
inlinevirtual |
Returns the pointer to the right child of this node
Implements itk::Statistics::KdTreeNode< TSample >.
Definition at line 156 of file itkKdTree.h.
References itk::Statistics::KdTreeNonterminalNode< TSample >::m_Right.
|
inlinevirtual |
Implements itk::Statistics::KdTreeNode< TSample >.
Definition at line 162 of file itkKdTree.h.
References itk::Statistics::KdTreeNonterminalNode< TSample >::m_Right.
|
inlinevirtual |
Returs the number of measurement vectors under this node including its children
Implements itk::Statistics::KdTreeNode< TSample >.
Definition at line 165 of file itkKdTree.h.
|
private |
Definition at line 186 of file itkKdTree.h.
Referenced by itk::Statistics::KdTreeNonterminalNode< TSample >::AddInstanceIdentifier(), and itk::Statistics::KdTreeNonterminalNode< TSample >::GetInstanceIdentifier().
|
private |
Definition at line 187 of file itkKdTree.h.
Referenced by itk::Statistics::KdTreeNonterminalNode< TSample >::Left().
|
private |
Definition at line 184 of file itkKdTree.h.
|
private |
Definition at line 185 of file itkKdTree.h.
|
private |
Definition at line 188 of file itkKdTree.h.
Referenced by itk::Statistics::KdTreeNonterminalNode< TSample >::Right().