ITK
6.0.0
Insight 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 394 of file itkKdTree.h.
Public Types | |
using | CentroidType = Array< double > |
using | InstanceIdentifier = typename TSample::InstanceIdentifier |
using | MeasurementType = typename TSample::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 | |
const Superclass * | Left () const override |
Superclass * | Left () override |
const Superclass * | Right () const override |
Superclass * | Right () override |
unsigned int | Size () const override |
~KdTreeTerminalNode () override | |
Public Member Functions inherited from itk::Statistics::KdTreeNode< TSample > | |
virtual void | AddInstanceIdentifier (InstanceIdentifier)=0 |
virtual void | GetCentroid (CentroidType &)=0 |
virtual InstanceIdentifier | GetInstanceIdentifier (InstanceIdentifier) const =0 |
virtual void | GetParameters (unsigned int &, MeasurementType &) const =0 |
virtual void | GetWeightedCentroid (CentroidType &)=0 |
virtual bool | IsTerminal () const =0 |
virtual const Self * | Left () const =0 |
virtual Self * | Left ()=0 |
virtual const Self * | Right () const =0 |
virtual Self * | Right ()=0 |
virtual unsigned int | Size () const =0 |
virtual | ~KdTreeNode ()=default |
Private Attributes | |
std::vector< InstanceIdentifier > | m_InstanceIdentifiers {} |
using itk::Statistics::KdTreeNode< TSample >::CentroidType = Array<double> |
Centroid type
Definition at line 74 of file itkKdTree.h.
using itk::Statistics::KdTreeNode< TSample >::InstanceIdentifier = typename TSample::InstanceIdentifier |
Instance identifier type (index value type for the measurement vector in a sample
Definition at line 78 of file itkKdTree.h.
using itk::Statistics::KdTreeNode< TSample >::MeasurementType = typename TSample::MeasurementType |
Measurement type, not the measurement vector type
Definition at line 71 of file itkKdTree.h.
using itk::Statistics::KdTreeTerminalNode< TSample >::Superclass = KdTreeNode<TSample> |
Definition at line 396 of file itkKdTree.h.
|
default |
|
inlineoverride |
Definition at line 403 of file itkKdTree.h.
|
inlineoverridevirtual |
Set the identifier of the node.
Implements itk::Statistics::KdTreeNode< TSample >.
Definition at line 483 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 465 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 474 of file itkKdTree.h.
|
inlineoverridevirtual |
Return the parameters of the node.
Implements itk::Statistics::KdTreeNode< TSample >.
Definition at line 414 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 457 of file itkKdTree.h.
|
inlineoverridevirtual |
A terminal node.
Implements itk::Statistics::KdTreeNode< TSample >.
Definition at line 407 of file itkKdTree.h.
|
inlineoverridevirtual |
Return the left tree const pointer. Null for terminal nodes.
Implements itk::Statistics::KdTreeNode< TSample >.
Definition at line 433 of file itkKdTree.h.
|
inlineoverridevirtual |
Return the left tree pointer. Null for terminal nodes.
Implements itk::Statistics::KdTreeNode< TSample >.
Definition at line 419 of file itkKdTree.h.
|
inlineoverridevirtual |
Return the right tree const pointer. Null for terminal nodes.
Implements itk::Statistics::KdTreeNode< TSample >.
Definition at line 440 of file itkKdTree.h.
|
inlineoverridevirtual |
Return the right tree pointer. Null for terminal nodes.
Implements itk::Statistics::KdTreeNode< TSample >.
Definition at line 426 of file itkKdTree.h.
|
inlineoverridevirtual |
Return the size of the node.
Implements itk::Statistics::KdTreeNode< TSample >.
Definition at line 447 of file itkKdTree.h.
|
private |
Definition at line 489 of file itkKdTree.h.