ITK
5.0.0
Insight Segmentation and Registration Toolkit
|
#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 362 of file itkKdTree.h.
Public Types | |
using | CentroidType = typename Superclass::CentroidType |
using | InstanceIdentifier = typename Superclass::InstanceIdentifier |
using | MeasurementType = typename Superclass::MeasurementType |
using | Superclass = KdTreeNode< TSample > |
Public Types inherited from itk::Statistics::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 | |
Superclass * | Left () override |
const Superclass * | Left () const override |
Superclass * | Right () override |
const Superclass * | Right () const override |
unsigned int | Size () const override |
~KdTreeTerminalNode () override | |
Public Member Functions inherited from itk::Statistics::KdTreeNode< TSample > | |
virtual | ~KdTreeNode ()=default |
Private Attributes | |
std::vector< InstanceIdentifier > | m_InstanceIdentifiers |
using itk::Statistics::KdTreeTerminalNode< TSample >::CentroidType = typename Superclass::CentroidType |
Definition at line 366 of file itkKdTree.h.
using itk::Statistics::KdTreeTerminalNode< TSample >::InstanceIdentifier = typename Superclass::InstanceIdentifier |
Definition at line 367 of file itkKdTree.h.
using itk::Statistics::KdTreeTerminalNode< TSample >::MeasurementType = typename Superclass::MeasurementType |
Definition at line 365 of file itkKdTree.h.
using itk::Statistics::KdTreeTerminalNode< TSample >::Superclass = KdTreeNode<TSample> |
Definition at line 364 of file itkKdTree.h.
|
default |
|
inlineoverride |
Definition at line 371 of file itkKdTree.h.
|
inlineoverridevirtual |
Set the identifier of the node.
Implements itk::Statistics::KdTreeNode< TSample >.
Definition at line 440 of file itkKdTree.h.
|
inlineoverridevirtual |
Returns the centroid. weighted centroid divided by the size. Do nothing for this case.
Implements itk::Statistics::KdTreeNode< TSample >.
Definition at line 425 of file itkKdTree.h.
|
inlineoverridevirtual |
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 432 of file itkKdTree.h.
|
inlineoverridevirtual |
Return the parameters of the node.
Implements itk::Statistics::KdTreeNode< TSample >.
Definition at line 383 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 419 of file itkKdTree.h.
|
inlineoverridevirtual |
A terminal node.
Implements itk::Statistics::KdTreeNode< TSample >.
Definition at line 377 of file itkKdTree.h.
|
inlineoverridevirtual |
Return the left tree pointer. Null for terminal nodes.
Implements itk::Statistics::KdTreeNode< TSample >.
Definition at line 386 of file itkKdTree.h.
|
inlineoverridevirtual |
Return the left tree const pointer. Null for terminal nodes.
Implements itk::Statistics::KdTreeNode< TSample >.
Definition at line 398 of file itkKdTree.h.
|
inlineoverridevirtual |
Return the right tree pointer. Null for terminal nodes.
Implements itk::Statistics::KdTreeNode< TSample >.
Definition at line 392 of file itkKdTree.h.
|
inlineoverridevirtual |
Return the right tree const pointer. Null for terminal nodes.
Implements itk::Statistics::KdTreeNode< TSample >.
Definition at line 404 of file itkKdTree.h.
|
inlineoverridevirtual |
Return the size of the node.
Implements itk::Statistics::KdTreeNode< TSample >.
Definition at line 410 of file itkKdTree.h.
|
private |
Definition at line 446 of file itkKdTree.h.