ITK
4.6.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 | |
typedef Superclass::CentroidType | CentroidType |
typedef Superclass::InstanceIdentifier | InstanceIdentifier |
typedef Superclass::MeasurementType | MeasurementType |
typedef KdTreeNode< TSample > | Superclass |
Public Types inherited from itk::Statistics::KdTreeNode< TSample > | |
typedef Array< double > | CentroidType |
typedef TSample::InstanceIdentifier | InstanceIdentifier |
typedef TSample::MeasurementType | MeasurementType |
typedef KdTreeNode< TSample > | Self |
Public Member Functions | |
void | AddInstanceIdentifier (InstanceIdentifier id) |
void | GetCentroid (CentroidType &) |
InstanceIdentifier | GetInstanceIdentifier (InstanceIdentifier index) const |
void | GetParameters (unsigned int &, MeasurementType &) const |
void | GetWeightedCentroid (CentroidType &) |
bool | IsTerminal () const |
KdTreeTerminalNode () | |
Superclass * | Left () |
const Superclass * | Left () const |
Superclass * | Right () |
const Superclass * | Right () const |
unsigned int | Size () const |
virtual | ~KdTreeTerminalNode () |
Public Member Functions inherited from itk::Statistics::KdTreeNode< TSample > | |
virtual | ~KdTreeNode () |
Private Attributes | |
std::vector< InstanceIdentifier > | m_InstanceIdentifiers |
typedef Superclass::CentroidType itk::Statistics::KdTreeTerminalNode< TSample >::CentroidType |
Definition at line 366 of file itkKdTree.h.
typedef Superclass::InstanceIdentifier itk::Statistics::KdTreeTerminalNode< TSample >::InstanceIdentifier |
Definition at line 367 of file itkKdTree.h.
typedef Superclass::MeasurementType itk::Statistics::KdTreeTerminalNode< TSample >::MeasurementType |
Definition at line 365 of file itkKdTree.h.
typedef KdTreeNode<TSample> itk::Statistics::KdTreeTerminalNode< TSample >::Superclass |
Definition at line 364 of file itkKdTree.h.
|
inline |
Definition at line 369 of file itkKdTree.h.
|
inlinevirtual |
Definition at line 371 of file itkKdTree.h.
References itk::Statistics::KdTreeTerminalNode< TSample >::m_InstanceIdentifiers.
|
inlinevirtual |
Set the identifier of the node.
Implements itk::Statistics::KdTreeNode< TSample >.
Definition at line 440 of file itkKdTree.h.
References itk::Statistics::KdTreeTerminalNode< TSample >::m_InstanceIdentifiers.
|
inlinevirtual |
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.
|
inlinevirtual |
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.
References itk::Statistics::KdTreeTerminalNode< TSample >::m_InstanceIdentifiers.
|
inlinevirtual |
Return the parameters of the node.
Implements itk::Statistics::KdTreeNode< TSample >.
Definition at line 383 of file itkKdTree.h.
|
inlinevirtual |
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.
|
inlinevirtual |
A terminal node.
Implements itk::Statistics::KdTreeNode< TSample >.
Definition at line 377 of file itkKdTree.h.
|
inlinevirtual |
Return the left tree pointer. Null for terminal nodes.
Implements itk::Statistics::KdTreeNode< TSample >.
Definition at line 386 of file itkKdTree.h.
|
inlinevirtual |
Return the left tree const pointer. Null for terminal nodes.
Implements itk::Statistics::KdTreeNode< TSample >.
Definition at line 398 of file itkKdTree.h.
|
inlinevirtual |
Return the right tree pointer. Null for terminal nodes.
Implements itk::Statistics::KdTreeNode< TSample >.
Definition at line 392 of file itkKdTree.h.
|
inlinevirtual |
Return the right tree const pointer. Null for terminal nodes.
Implements itk::Statistics::KdTreeNode< TSample >.
Definition at line 404 of file itkKdTree.h.
|
inlinevirtual |
Return the size of the node.
Implements itk::Statistics::KdTreeNode< TSample >.
Definition at line 410 of file itkKdTree.h.
References itk::Statistics::KdTreeTerminalNode< TSample >::m_InstanceIdentifiers.
|
private |
Definition at line 446 of file itkKdTree.h.
Referenced by itk::Statistics::KdTreeTerminalNode< TSample >::AddInstanceIdentifier(), itk::Statistics::KdTreeTerminalNode< TSample >::GetInstanceIdentifier(), itk::Statistics::KdTreeTerminalNode< TSample >::Size(), and itk::Statistics::KdTreeTerminalNode< TSample >::~KdTreeTerminalNode().