|
ITK
5.2.0
Insight Toolkit
|
Go to the documentation of this file.
18 #ifndef itkImageKmeansModelEstimator_h
19 #define itkImageKmeansModelEstimator_h
25 #include "vnl/vnl_vector.h"
26 #include "vnl/vnl_matrix.h"
28 #include "vnl/algo/vnl_matrix_inverse.h"
36 #define GLA_CONVERGED 1
37 #define GLA_NOT_CONVERGED 2
38 #define LBG_COMPLETED 3
130 template <
typename TInputImage,
typename TMembershipFunction>
191 itkSetMacro(Threshold,
double);
194 itkGetConstMacro(Threshold,
double);
197 itkSetMacro(OffsetAdd,
double);
200 itkGetConstMacro(OffsetAdd,
double);
203 itkSetMacro(OffsetMultiply,
double);
206 itkGetConstMacro(OffsetMultiply,
double);
209 itkSetMacro(MaxSplitAttempts,
int);
212 itkGetConstMacro(MaxSplitAttempts,
int);
215 CodebookMatrixOfDoubleType
225 PrintSelf(std::ostream & os,
Indent indent)
const override;
229 GenerateData()
override;
237 PrintKmeansAlgorithmResults();
247 EstimateModels()
override;
250 EstimateKmeansModelParameters();
258 Reallocate(
int oldSize,
int newSize);
262 WithCodebookUseGLA();
265 WithoutCodebookUseLBG();
268 NearestNeighborSearchBasic(
double * distortion);
271 SplitCodewords(
int currentSize,
int numDesired,
int scale);
274 Perturb(
double * oldCodeword,
int scale,
double * newCodeword);
301 #ifndef ITK_MANUAL_INSTANTIATION
302 # include "itkImageKmeansModelEstimator.hxx"
CodebookMatrixOfDoubleType GetOutCodebook()
vnl_matrix< int > CodebookMatrixOfIntegerType
Base class for ImageKmeansModelEstimator object.
double m_OutputDistortion
SizeValueType m_NumberOfCodewords
ImageBaseType::SpacingType VectorType
CodebookMatrixOfDoubleType m_CodewordDistortion
CodebookMatrixOfIntegerType m_CodewordHistogram
ImageBaseType::SizeType SizeType
typename TInputImage::Pointer InputImagePointer
Control indentation during Print() invocation.
typename TInputImage::SizeType ImageSizeType
typename TInputImage::PixelType InputImagePixelType
vnl_matrix< double > CodebookMatrixOfDoubleType
A multi-dimensional iterator templated over image type that walks a region of pixels.
Light weight base class for most itk classes.
SizeValueType m_CurrentNumberOfCodewords
Base class for model estimation from images used for classification.
typename TInputImage::ConstPointer InputImageConstPointer
CodebookMatrixOfDoubleType m_Centroid
typename TInputImage::PixelType::VectorType InputImageVectorType
CodebookMatrixOfDoubleType m_Codebook
SizeValueType m_VectorDimension
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
int m_OutputNumberOfEmptyCells
Base class for most ITK classes.
A multi-dimensional iterator templated over image type that walks a region of pixels.
CodebookMatrixOfDoubleType GetKmeansResults()
typename TMembershipFunction::Pointer MembershipFunctionPointer
typename TInputImage::PixelType::VectorType InputPixelVectorType
TInputImage InputImageType
unsigned long SizeValueType