![]() |
Orfeo Toolbox
3.16
|
This is a subclass of the KdTreeNode. More...
#include <itkKdTree.h>
Inheritance diagram for itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >:
Collaboration diagram for itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >:Public Types | |
| typedef Superclass::CentroidType | CentroidType |
| typedef Superclass::InstanceIdentifier | InstanceIdentifier |
| typedef Superclass::MeasurementType | MeasurementType |
| typedef TSample::MeasurementVectorSizeType | MeasurementVectorSizeType |
| typedef KdTreeNode< TSample > | Self |
| typedef KdTreeNode< TSample > | Superclass |
Public Member Functions | |
| KdTreeWeightedCentroidNonterminalNode (unsigned int partitionDimension, MeasurementType partitionValue, Superclass *left, Superclass *right, CentroidType ¢roid, unsigned int size) | |
| virtual | ~KdTreeWeightedCentroidNonterminalNode () |
| void | AddInstanceIdentifier (InstanceIdentifier valueId) |
| void | GetCentroid (CentroidType ¢roid) |
| InstanceIdentifier | GetInstanceIdentifier (vcl_size_t) const |
| MeasurementVectorSizeType | GetMeasurementVectorSize () const |
| void | GetParameters (unsigned int &partitionDimension, MeasurementType &partitionValue) const |
| void | GetWeightedCentroid (CentroidType ¢roid) |
| virtual bool | IsTerminal () const |
| Superclass * | Left () |
| const Superclass * | Left () const |
| Superclass * | Right () |
| const Superclass * | Right () const |
| unsigned int | Size () const |
Private Attributes | |
| CentroidType | m_Centroid |
| InstanceIdentifier | m_InstanceIdentifier |
| Superclass * | m_Left |
| MeasurementVectorSizeType | m_MeasurementVectorSize |
| unsigned int | m_PartitionDimension |
| MeasurementType | m_PartitionValue |
| Superclass * | m_Right |
| unsigned int | m_Size |
| CentroidType | m_WeightedCentroid |
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 206 of file itkKdTree.h.
| typedef Superclass::CentroidType itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::CentroidType |
Centroid type
Reimplemented from itk::Statistics::KdTreeNode< TSample >.
Definition at line 210 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 211 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 209 of file itkKdTree.h.
| typedef TSample::MeasurementVectorSizeType itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::MeasurementVectorSizeType |
Definition at line 212 of file itkKdTree.h.
|
inherited |
type alias for itself
Definition at line 69 of file itkKdTree.h.
| typedef KdTreeNode< TSample > itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::Superclass |
Definition at line 208 of file itkKdTree.h.
| itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::KdTreeWeightedCentroidNonterminalNode | ( | unsigned int | partitionDimension, |
| MeasurementType | partitionValue, | ||
| Superclass * | left, | ||
| Superclass * | right, | ||
| CentroidType & | centroid, | ||
| unsigned int | size | ||
| ) |
Definition at line 50 of file itkKdTree.txx.
References itk::MeasurementVectorTraits::GetLength().
|
inlinevirtual |
Definition at line 220 of file itkKdTree.h.
|
inlinevirtual |
Add an instance to this node
Implements itk::Statistics::KdTreeNode< TSample >.
Definition at line 261 of file itkKdTree.h.
References itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::m_InstanceIdentifier.
|
inlinevirtual |
Returns the centroid. weighted centroid divided by the size
Implements itk::Statistics::KdTreeNode< TSample >.
Definition at line 255 of file itkKdTree.h.
References itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::m_Centroid.
|
inlinevirtual |
Retuns the instance identifier of the index-th measurement vector
Implements itk::Statistics::KdTreeNode< TSample >.
Definition at line 258 of file itkKdTree.h.
References itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::m_InstanceIdentifier.
|
inline |
Return the length of a measurement vector
Definition at line 232 of file itkKdTree.h.
References itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::m_MeasurementVectorSize.
|
virtual |
Fills the partitionDimension (the dimension that was chosen to split the measurement vectors belong to this node to the left and the right child among k dimensions) and the partitionValue (the measurement value on the partitionDimension divides the left and the right child
Implements itk::Statistics::KdTreeNode< TSample >.
Definition at line 72 of file itkKdTree.txx.
|
inlinevirtual |
Returns the vector sum of the all measurement vectors under this node
Implements itk::Statistics::KdTreeNode< TSample >.
Definition at line 252 of file itkKdTree.h.
References itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::m_WeightedCentroid.
|
inlinevirtual |
Returns true if the node is a terminal node, that is a node that doesn't have any child.
Implements itk::Statistics::KdTreeNode< TSample >.
Definition at line 225 of file itkKdTree.h.
|
inlinevirtual |
Returns the pointer to the left child of this node
Implements itk::Statistics::KdTreeNode< TSample >.
Definition at line 237 of file itkKdTree.h.
References itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::m_Left.
|
inlinevirtual |
Implements itk::Statistics::KdTreeNode< TSample >.
Definition at line 243 of file itkKdTree.h.
References itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::m_Left.
|
inlinevirtual |
Returns the pointer to the right child of this node
Implements itk::Statistics::KdTreeNode< TSample >.
Definition at line 240 of file itkKdTree.h.
References itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::m_Right.
|
inlinevirtual |
Implements itk::Statistics::KdTreeNode< TSample >.
Definition at line 246 of file itkKdTree.h.
References itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::m_Right.
|
inlinevirtual |
Returs the number of measurement vectors under this node including its children
Implements itk::Statistics::KdTreeNode< TSample >.
Definition at line 249 of file itkKdTree.h.
References itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::m_Size.
|
private |
Definition at line 269 of file itkKdTree.h.
Referenced by itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::GetCentroid().
|
private |
Definition at line 270 of file itkKdTree.h.
Referenced by itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::AddInstanceIdentifier(), and itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::GetInstanceIdentifier().
|
private |
Definition at line 272 of file itkKdTree.h.
Referenced by itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::Left().
|
private |
Definition at line 265 of file itkKdTree.h.
Referenced by itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::GetMeasurementVectorSize().
|
private |
Definition at line 266 of file itkKdTree.h.
|
private |
Definition at line 267 of file itkKdTree.h.
|
private |
Definition at line 273 of file itkKdTree.h.
Referenced by itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::Right().
|
private |
Definition at line 271 of file itkKdTree.h.
Referenced by itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::Size().
|
private |
Definition at line 268 of file itkKdTree.h.
Referenced by itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::GetWeightedCentroid().