#include <itkKdTree.h>
This class is the node that doesn't have any child node. The IsTerminal method returns true for this class. This class stores the instance identifiers belonging to this node, while the nonterminal nodes do not store them. The AddInstanceIdentifier and GetInstanceIdentifier are storing and retrieving the instance identifiers belonging to this node.
Definition at line 400 of file itkKdTree.h.
Public Types | |
using | CentroidType |
using | InstanceIdentifier |
using | MeasurementType |
using | Superclass = KdTreeNode<TSample> |
![]() | |
using | CentroidType = Array<double> |
using | InstanceIdentifier = typename TSample::InstanceIdentifier |
using | MeasurementType = typename TSample::MeasurementType |
using | Self = KdTreeNode<TSample> |
Public Member Functions | |
void | AddInstanceIdentifier (InstanceIdentifier id) override |
void | GetCentroid (CentroidType &) override |
InstanceIdentifier | GetInstanceIdentifier (InstanceIdentifier index) const override |
void | GetParameters (unsigned int &, MeasurementType &) const override |
void | GetWeightedCentroid (CentroidType &) override |
bool | IsTerminal () const override |
KdTreeTerminalNode ()=default | |
const Superclass * | Left () const override |
Superclass * | Left () override |
const Superclass * | Right () const override |
Superclass * | Right () override |
unsigned int | Size () const override |
~KdTreeTerminalNode () override | |
![]() | |
virtual | ~KdTreeNode ()=default |
Private Attributes | |
std::vector< InstanceIdentifier > | m_InstanceIdentifiers {} |
using itk::Statistics::KdTreeNode< TSample >::CentroidType |
Centroid type
Definition at line 72 of file itkKdTree.h.
using itk::Statistics::KdTreeNode< TSample >::InstanceIdentifier |
Instance identifier type (index value type for the measurement vector in a sample
Definition at line 76 of file itkKdTree.h.
using itk::Statistics::KdTreeNode< TSample >::MeasurementType |
Measurement type, not the measurement vector type
Definition at line 69 of file itkKdTree.h.
using itk::Statistics::KdTreeTerminalNode< TSample >::Superclass = KdTreeNode<TSample> |
Definition at line 402 of file itkKdTree.h.
|
default |
|
inlineoverride |
Definition at line 409 of file itkKdTree.h.
References m_InstanceIdentifiers.
|
inlineoverridevirtual |
Set the identifier of the node.
Implements itk::Statistics::KdTreeNode< TSample >.
Definition at line 489 of file itkKdTree.h.
References m_InstanceIdentifiers.
|
inlineoverridevirtual |
Returns the centroid. weighted centroid divided by the size. Do nothing for this case.
Implements itk::Statistics::KdTreeNode< TSample >.
Definition at line 471 of file itkKdTree.h.
|
inlinenodiscardoverridevirtual |
Returns the identifier of the only MeasurementVector associated with this node in the tree. This MeasurementVector will be used later during the distance computation when querying the tree.
Implements itk::Statistics::KdTreeNode< TSample >.
Definition at line 480 of file itkKdTree.h.
References m_InstanceIdentifiers.
|
inlineoverridevirtual |
Return the parameters of the node.
Implements itk::Statistics::KdTreeNode< TSample >.
Definition at line 420 of file itkKdTree.h.
|
inlineoverridevirtual |
Returns the vector sum of the all measurement vectors under this node. Do nothing for this case.
Implements itk::Statistics::KdTreeNode< TSample >.
Definition at line 463 of file itkKdTree.h.
|
inlinenodiscardoverridevirtual |
A terminal node.
Implements itk::Statistics::KdTreeNode< TSample >.
Definition at line 413 of file itkKdTree.h.
|
inlinenodiscardoverridevirtual |
Return the left tree const pointer. Null for terminal nodes.
Implements itk::Statistics::KdTreeNode< TSample >.
Definition at line 439 of file itkKdTree.h.
|
inlineoverridevirtual |
Return the left tree pointer. Null for terminal nodes.
Implements itk::Statistics::KdTreeNode< TSample >.
Definition at line 425 of file itkKdTree.h.
|
inlinenodiscardoverridevirtual |
Return the right tree const pointer. Null for terminal nodes.
Implements itk::Statistics::KdTreeNode< TSample >.
Definition at line 446 of file itkKdTree.h.
|
inlineoverridevirtual |
Return the right tree pointer. Null for terminal nodes.
Implements itk::Statistics::KdTreeNode< TSample >.
Definition at line 432 of file itkKdTree.h.
|
inlinenodiscardoverridevirtual |
Return the size of the node.
Implements itk::Statistics::KdTreeNode< TSample >.
Definition at line 453 of file itkKdTree.h.
References m_InstanceIdentifiers.
|
private |
Definition at line 495 of file itkKdTree.h.
Referenced by AddInstanceIdentifier(), GetInstanceIdentifier(), Size(), and ~KdTreeTerminalNode().