ITK
4.9.0
Insight Segmentation and Registration Toolkit
|
#include <itkKdTreeBasedKmeansEstimator.h>
Definition at line 179 of file itkKdTreeBasedKmeansEstimator.h.
Classes | |
struct | Candidate |
Public Member Functions | |
CandidateVector () | |
void | GetCentroids (InternalParametersType ¢roids) |
Candidate & | operator[] (int index) |
int | Size () const |
void | UpdateCentroids () |
virtual | ~CandidateVector () |
void | SetCentroids (InternalParametersType ¢roids) |
Private Attributes | |
std::vector< Candidate > | m_Candidates |
MeasurementVectorSizeType | m_MeasurementVectorSize |
|
inline |
Definition at line 182 of file itkKdTreeBasedKmeansEstimator.h.
|
inlinevirtual |
Definition at line 190 of file itkKdTreeBasedKmeansEstimator.h.
|
inline |
gets the centroids (k-means)
Definition at line 218 of file itkKdTreeBasedKmeansEstimator.h.
References itk::Statistics::KdTreeBasedKmeansEstimator< TKdTree >::CandidateVector::m_Candidates, and itk::Statistics::KdTreeBasedKmeansEstimator< TKdTree >::CandidateVector::Size().
|
inline |
gets the index-th candidates
Definition at line 250 of file itkKdTreeBasedKmeansEstimator.h.
References itk::Statistics::KdTreeBasedKmeansEstimator< TKdTree >::CandidateVector::m_Candidates.
|
inline |
Initialize the centroids with the argument. At each iteration, this should be called before filtering.
Definition at line 200 of file itkKdTreeBasedKmeansEstimator.h.
References itk::Statistics::KdTreeBasedKmeansEstimator< TKdTree >::CandidateVector::Candidate::Centroid, itk::NumericTraits< T >::GetLength(), itk::Statistics::KdTreeBasedKmeansEstimator< TKdTree >::CandidateVector::m_Candidates, itk::Statistics::KdTreeBasedKmeansEstimator< TKdTree >::CandidateVector::m_MeasurementVectorSize, itk::NumericTraits< T >::SetLength(), itk::Statistics::KdTreeBasedKmeansEstimator< TKdTree >::CandidateVector::Candidate::Size, and itk::Statistics::KdTreeBasedKmeansEstimator< TKdTree >::CandidateVector::Candidate::WeightedCentroid.
|
inline |
returns the number of candidate = k
Definition at line 193 of file itkKdTreeBasedKmeansEstimator.h.
References itk::Statistics::KdTreeBasedKmeansEstimator< TKdTree >::CandidateVector::m_Candidates.
Referenced by itk::Statistics::KdTreeBasedKmeansEstimator< TKdTree >::CandidateVector::GetCentroids(), and itk::Statistics::KdTreeBasedKmeansEstimator< TKdTree >::CandidateVector::UpdateCentroids().
|
inline |
updates the centroids using the vector sum of measurement vectors that belongs to each centroid and the number of measurement vectors
Definition at line 231 of file itkKdTreeBasedKmeansEstimator.h.
References itk::Statistics::KdTreeBasedKmeansEstimator< TKdTree >::CandidateVector::m_Candidates, itk::Statistics::KdTreeBasedKmeansEstimator< TKdTree >::CandidateVector::m_MeasurementVectorSize, and itk::Statistics::KdTreeBasedKmeansEstimator< TKdTree >::CandidateVector::Size().
|
private |
internal storage for the candidates
Definition at line 257 of file itkKdTreeBasedKmeansEstimator.h.
Referenced by itk::Statistics::KdTreeBasedKmeansEstimator< TKdTree >::CandidateVector::GetCentroids(), itk::Statistics::KdTreeBasedKmeansEstimator< TKdTree >::CandidateVector::operator[](), itk::Statistics::KdTreeBasedKmeansEstimator< TKdTree >::CandidateVector::SetCentroids(), itk::Statistics::KdTreeBasedKmeansEstimator< TKdTree >::CandidateVector::Size(), and itk::Statistics::KdTreeBasedKmeansEstimator< TKdTree >::CandidateVector::UpdateCentroids().
|
private |
Length of each measurement vector
Definition at line 260 of file itkKdTreeBasedKmeansEstimator.h.
Referenced by itk::Statistics::KdTreeBasedKmeansEstimator< TKdTree >::CandidateVector::SetCentroids(), and itk::Statistics::KdTreeBasedKmeansEstimator< TKdTree >::CandidateVector::UpdateCentroids().