ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
#include <itkKdTree.h>
This is a subclass of the KdTreeNode.
KdTreeNonterminalNode does have the information related with the centroids. Therefore, the GetWeightedCentroid and the GetCentroid methods returns meaningful values. This class should have the left and right children. If we have a sample and want to generate a KdTree with the centroid related information, we can use the WeightedCentroidKdTreeGenerator. The centroid, the weighted centroid, and the size (the number of measurement vectors) can be used to accelate the k-means estimation.
Definition at line 244 of file itkKdTree.h.
typedef Superclass::CentroidType itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::CentroidType |
Centroid type
Reimplemented from itk::Statistics::KdTreeNode< TSample >.
Definition at line 248 of file itkKdTree.h.
typedef Superclass::InstanceIdentifier itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::InstanceIdentifier |
Instance identifier type (index value type for the measurement vector in a sample
Reimplemented from itk::Statistics::KdTreeNode< TSample >.
Definition at line 249 of file itkKdTree.h.
typedef Superclass::MeasurementType itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::MeasurementType |
Measurement type, not the measurement vector type
Reimplemented from itk::Statistics::KdTreeNode< TSample >.
Definition at line 247 of file itkKdTree.h.
typedef TSample::MeasurementVectorSizeType itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::MeasurementVectorSizeType |
Definition at line 250 of file itkKdTree.h.
typedef KdTreeNode<TSample> itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::Superclass |
Definition at line 246 of file itkKdTree.h.
itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::KdTreeWeightedCentroidNonterminalNode | ( | unsigned | int, |
MeasurementType | , | ||
Superclass * | , | ||
Superclass * | , | ||
CentroidType & | , | ||
unsigned | int | ||
) |
virtual itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::~KdTreeWeightedCentroidNonterminalNode | ( | ) | [inline, virtual] |
Definition at line 255 of file itkKdTree.h.
void itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::AddInstanceIdentifier | ( | InstanceIdentifier | valueId | ) | [inline, virtual] |
Set the identifier of the node.
Implements itk::Statistics::KdTreeNode< TSample >.
Definition at line 331 of file itkKdTree.h.
References itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::m_InstanceIdentifier.
void itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::GetCentroid | ( | CentroidType & | centroid | ) | [inline, virtual] |
Returns the centroid. weighted centroid divided by the size.
Implements itk::Statistics::KdTreeNode< TSample >.
Definition at line 313 of file itkKdTree.h.
References itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::m_Centroid.
InstanceIdentifier itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::GetInstanceIdentifier | ( | InstanceIdentifier | ) | 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 323 of file itkKdTree.h.
References itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::m_InstanceIdentifier.
MeasurementVectorSizeType itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::GetMeasurementVectorSize | ( | ) | const [inline] |
Return the length of a measurement vector
Definition at line 267 of file itkKdTree.h.
References itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::m_MeasurementVectorSize.
void itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::GetParameters | ( | unsigned int & | , |
MeasurementType & | |||
) | const [virtual] |
Return the parameters of the node.
Implements itk::Statistics::KdTreeNode< TSample >.
void itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::GetWeightedCentroid | ( | CentroidType & | centroid | ) | [inline, virtual] |
Returns the vector sum of the all measurement vectors under this node.
Implements itk::Statistics::KdTreeNode< TSample >.
Definition at line 305 of file itkKdTree.h.
References itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::m_WeightedCentroid.
virtual bool itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::IsTerminal | ( | ) | const [inline, virtual] |
Not a terminal node.
Implements itk::Statistics::KdTreeNode< TSample >.
Definition at line 258 of file itkKdTree.h.
Superclass* itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::Left | ( | ) | [inline, virtual] |
Return the left tree pointer.
Implements itk::Statistics::KdTreeNode< TSample >.
Definition at line 273 of file itkKdTree.h.
References itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::m_Left.
const Superclass* itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::Left | ( | ) | const [inline, virtual] |
Return the left tree const pointer.
Implements itk::Statistics::KdTreeNode< TSample >.
Definition at line 285 of file itkKdTree.h.
References itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::m_Left.
Superclass* itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::Right | ( | ) | [inline, virtual] |
Return the right tree pointer.
Implements itk::Statistics::KdTreeNode< TSample >.
Definition at line 279 of file itkKdTree.h.
References itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::m_Right.
const Superclass* itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::Right | ( | ) | const [inline, virtual] |
Return the right tree const pointer.
Implements itk::Statistics::KdTreeNode< TSample >.
Definition at line 291 of file itkKdTree.h.
References itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::m_Right.
unsigned int itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::Size | ( | void | ) | const [inline, virtual] |
Return the size of the node.
Implements itk::Statistics::KdTreeNode< TSample >.
Definition at line 297 of file itkKdTree.h.
References itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::m_Size.
CentroidType itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::m_Centroid [private] |
Definition at line 341 of file itkKdTree.h.
Referenced by itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::GetCentroid().
InstanceIdentifier itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::m_InstanceIdentifier [private] |
Definition at line 342 of file itkKdTree.h.
Referenced by itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::AddInstanceIdentifier(), and itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::GetInstanceIdentifier().
Superclass* itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::m_Left [private] |
Definition at line 344 of file itkKdTree.h.
Referenced by itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::Left().
MeasurementVectorSizeType itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::m_MeasurementVectorSize [private] |
Definition at line 337 of file itkKdTree.h.
Referenced by itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::GetMeasurementVectorSize().
unsigned int itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::m_PartitionDimension [private] |
Definition at line 338 of file itkKdTree.h.
MeasurementType itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::m_PartitionValue [private] |
Definition at line 339 of file itkKdTree.h.
Superclass* itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::m_Right [private] |
Definition at line 345 of file itkKdTree.h.
Referenced by itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::Right().
unsigned int itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::m_Size [private] |
Definition at line 343 of file itkKdTree.h.
Referenced by itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::Size().
CentroidType itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::m_WeightedCentroid [private] |
Definition at line 340 of file itkKdTree.h.
Referenced by itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::GetWeightedCentroid().