ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
#include <itkKdTree.h>
Public Types | |
typedef Superclass::CentroidType | CentroidType |
typedef Superclass::InstanceIdentifier | InstanceIdentifier |
typedef Superclass::MeasurementType | MeasurementType |
typedef KdTreeNode< TSample > | Superclass |
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 () |
Private Attributes | |
std::vector< InstanceIdentifier > | m_InstanceIdentifiers |
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 361 of file itkKdTree.h.
typedef Superclass::CentroidType itk::Statistics::KdTreeTerminalNode< TSample >::CentroidType |
Centroid type
Reimplemented from itk::Statistics::KdTreeNode< TSample >.
Definition at line 365 of file itkKdTree.h.
typedef Superclass::InstanceIdentifier itk::Statistics::KdTreeTerminalNode< TSample >::InstanceIdentifier |
Instance identifier type (index value type for the measurement vector in a sample
Reimplemented from itk::Statistics::KdTreeNode< TSample >.
Definition at line 366 of file itkKdTree.h.
typedef Superclass::MeasurementType itk::Statistics::KdTreeTerminalNode< TSample >::MeasurementType |
Measurement type, not the measurement vector type
Reimplemented from itk::Statistics::KdTreeNode< TSample >.
Definition at line 364 of file itkKdTree.h.
typedef KdTreeNode<TSample> itk::Statistics::KdTreeTerminalNode< TSample >::Superclass |
Definition at line 363 of file itkKdTree.h.
itk::Statistics::KdTreeTerminalNode< TSample >::KdTreeTerminalNode | ( | ) | [inline] |
Definition at line 368 of file itkKdTree.h.
virtual itk::Statistics::KdTreeTerminalNode< TSample >::~KdTreeTerminalNode | ( | ) | [inline, virtual] |
Definition at line 370 of file itkKdTree.h.
References itk::Statistics::KdTreeTerminalNode< TSample >::m_InstanceIdentifiers.
void itk::Statistics::KdTreeTerminalNode< TSample >::AddInstanceIdentifier | ( | InstanceIdentifier | id | ) | [inline, virtual] |
Set the identifier of the node.
Implements itk::Statistics::KdTreeNode< TSample >.
Definition at line 439 of file itkKdTree.h.
References itk::Statistics::KdTreeTerminalNode< TSample >::m_InstanceIdentifiers.
void itk::Statistics::KdTreeTerminalNode< TSample >::GetCentroid | ( | CentroidType & | ) | [inline, virtual] |
Returns the centroid. weighted centroid divided by the size. Do nothing for this case.
Implements itk::Statistics::KdTreeNode< TSample >.
Definition at line 424 of file itkKdTree.h.
InstanceIdentifier itk::Statistics::KdTreeTerminalNode< TSample >::GetInstanceIdentifier | ( | InstanceIdentifier | index | ) | const [inline, virtual] |
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 431 of file itkKdTree.h.
References itk::Statistics::KdTreeTerminalNode< TSample >::m_InstanceIdentifiers.
void itk::Statistics::KdTreeTerminalNode< TSample >::GetParameters | ( | unsigned int & | , |
MeasurementType & | |||
) | const [inline, virtual] |
Return the parameters of the node.
Implements itk::Statistics::KdTreeNode< TSample >.
Definition at line 382 of file itkKdTree.h.
void itk::Statistics::KdTreeTerminalNode< TSample >::GetWeightedCentroid | ( | CentroidType & | ) | [inline, virtual] |
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 418 of file itkKdTree.h.
bool itk::Statistics::KdTreeTerminalNode< TSample >::IsTerminal | ( | ) | const [inline, virtual] |
A terminal node.
Implements itk::Statistics::KdTreeNode< TSample >.
Definition at line 376 of file itkKdTree.h.
Superclass* itk::Statistics::KdTreeTerminalNode< TSample >::Left | ( | ) | [inline, virtual] |
Return the left tree pointer. Null for terminal nodes.
Implements itk::Statistics::KdTreeNode< TSample >.
Definition at line 385 of file itkKdTree.h.
const Superclass* itk::Statistics::KdTreeTerminalNode< TSample >::Left | ( | ) | const [inline, virtual] |
Return the left tree const pointer. Null for terminal nodes.
Implements itk::Statistics::KdTreeNode< TSample >.
Definition at line 397 of file itkKdTree.h.
Superclass* itk::Statistics::KdTreeTerminalNode< TSample >::Right | ( | ) | [inline, virtual] |
Return the right tree pointer. Null for terminal nodes.
Implements itk::Statistics::KdTreeNode< TSample >.
Definition at line 391 of file itkKdTree.h.
const Superclass* itk::Statistics::KdTreeTerminalNode< TSample >::Right | ( | ) | const [inline, virtual] |
Return the right tree const pointer. Null for terminal nodes.
Implements itk::Statistics::KdTreeNode< TSample >.
Definition at line 403 of file itkKdTree.h.
unsigned int itk::Statistics::KdTreeTerminalNode< TSample >::Size | ( | void | ) | const [inline, virtual] |
Return the size of the node.
Implements itk::Statistics::KdTreeNode< TSample >.
Definition at line 409 of file itkKdTree.h.
References itk::Statistics::KdTreeTerminalNode< TSample >::m_InstanceIdentifiers.
std::vector< InstanceIdentifier > itk::Statistics::KdTreeTerminalNode< TSample >::m_InstanceIdentifiers [private] |
Definition at line 445 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().