ITK  5.0.0
Insight Segmentation and Registration Toolkit
Public Types | Public Member Functions | Private Attributes | List of all members
itk::Statistics::KdTreeTerminalNode< TSample > Class Template Reference

#include <itkKdTree.h>

+ Inheritance diagram for itk::Statistics::KdTreeTerminalNode< TSample >:
+ Collaboration diagram for itk::Statistics::KdTreeTerminalNode< TSample >:

Detailed Description

template<typename TSample>
class itk::Statistics::KdTreeTerminalNode< TSample >

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.

See Also
KdTreeNode, KdTreeNonterminalNode, KdTreeWeightedCentroidNonterminalNode

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
 
SuperclassLeft () override
 
const SuperclassLeft () const override
 
SuperclassRight () override
 
const SuperclassRight () 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< InstanceIdentifierm_InstanceIdentifiers
 

Member Typedef Documentation

template<typename TSample >
using itk::Statistics::KdTreeTerminalNode< TSample >::CentroidType = typename Superclass::CentroidType

Definition at line 366 of file itkKdTree.h.

template<typename TSample >
using itk::Statistics::KdTreeTerminalNode< TSample >::InstanceIdentifier = typename Superclass::InstanceIdentifier

Definition at line 367 of file itkKdTree.h.

template<typename TSample >
using itk::Statistics::KdTreeTerminalNode< TSample >::MeasurementType = typename Superclass::MeasurementType

Definition at line 365 of file itkKdTree.h.

template<typename TSample >
using itk::Statistics::KdTreeTerminalNode< TSample >::Superclass = KdTreeNode<TSample>

Definition at line 364 of file itkKdTree.h.

Constructor & Destructor Documentation

template<typename TSample >
itk::Statistics::KdTreeTerminalNode< TSample >::KdTreeTerminalNode ( )
default
template<typename TSample >
itk::Statistics::KdTreeTerminalNode< TSample >::~KdTreeTerminalNode ( )
inlineoverride

Definition at line 371 of file itkKdTree.h.

Member Function Documentation

template<typename TSample >
void itk::Statistics::KdTreeTerminalNode< TSample >::AddInstanceIdentifier ( InstanceIdentifier  id)
inlineoverridevirtual

Set the identifier of the node.

Implements itk::Statistics::KdTreeNode< TSample >.

Definition at line 440 of file itkKdTree.h.

template<typename TSample >
void itk::Statistics::KdTreeTerminalNode< TSample >::GetCentroid ( CentroidType )
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.

template<typename TSample >
InstanceIdentifier itk::Statistics::KdTreeTerminalNode< TSample >::GetInstanceIdentifier ( InstanceIdentifier  index) const
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.

template<typename TSample >
void itk::Statistics::KdTreeTerminalNode< TSample >::GetParameters ( unsigned int &  ,
MeasurementType  
) const
inlineoverridevirtual

Return the parameters of the node.

Implements itk::Statistics::KdTreeNode< TSample >.

Definition at line 383 of file itkKdTree.h.

template<typename TSample >
void itk::Statistics::KdTreeTerminalNode< TSample >::GetWeightedCentroid ( CentroidType )
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.

template<typename TSample >
bool itk::Statistics::KdTreeTerminalNode< TSample >::IsTerminal ( ) const
inlineoverridevirtual

A terminal node.

Implements itk::Statistics::KdTreeNode< TSample >.

Definition at line 377 of file itkKdTree.h.

template<typename TSample >
Superclass* itk::Statistics::KdTreeTerminalNode< TSample >::Left ( )
inlineoverridevirtual

Return the left tree pointer. Null for terminal nodes.

Implements itk::Statistics::KdTreeNode< TSample >.

Definition at line 386 of file itkKdTree.h.

template<typename TSample >
const Superclass* itk::Statistics::KdTreeTerminalNode< TSample >::Left ( ) const
inlineoverridevirtual

Return the left tree const pointer. Null for terminal nodes.

Implements itk::Statistics::KdTreeNode< TSample >.

Definition at line 398 of file itkKdTree.h.

template<typename TSample >
Superclass* itk::Statistics::KdTreeTerminalNode< TSample >::Right ( )
inlineoverridevirtual

Return the right tree pointer. Null for terminal nodes.

Implements itk::Statistics::KdTreeNode< TSample >.

Definition at line 392 of file itkKdTree.h.

template<typename TSample >
const Superclass* itk::Statistics::KdTreeTerminalNode< TSample >::Right ( ) const
inlineoverridevirtual

Return the right tree const pointer. Null for terminal nodes.

Implements itk::Statistics::KdTreeNode< TSample >.

Definition at line 404 of file itkKdTree.h.

template<typename TSample >
unsigned int itk::Statistics::KdTreeTerminalNode< TSample >::Size ( ) const
inlineoverridevirtual

Return the size of the node.

Implements itk::Statistics::KdTreeNode< TSample >.

Definition at line 410 of file itkKdTree.h.

Member Data Documentation

template<typename TSample >
std::vector< InstanceIdentifier > itk::Statistics::KdTreeTerminalNode< TSample >::m_InstanceIdentifiers
private

Definition at line 446 of file itkKdTree.h.


The documentation for this class was generated from the following file: