|
ITK
5.2.0
Insight Toolkit
|
Go to the documentation of this file.
18 #ifndef itkImagePCAShapeModelEstimator_h
19 #define itkImagePCAShapeModelEstimator_h
25 #include "vnl/vnl_vector.h"
26 #include "vnl/vnl_matrix.h"
28 #include "vnl/algo/vnl_matrix_inverse.h"
36 #include "vnl/algo/vnl_generalized_eigensystem.h"
37 #include "vnl/algo/vnl_symmetric_eigensystem.h"
75 template <
typename TInputImage,
typename TOutputImage = Image<
double, TInputImage::ImageDimension>>
106 static constexpr
unsigned int InputImageDimension = TInputImage::ImageDimension;
129 SetNumberOfPrincipalComponentsRequired(
unsigned int n);
131 itkGetConstMacro(NumberOfPrincipalComponentsRequired,
unsigned int);
135 SetNumberOfTrainingImages(
unsigned int n);
137 itkGetConstMacro(NumberOfTrainingImages,
unsigned int);
146 PrintSelf(std::ostream & os,
Indent indent)
const override;
152 EnlargeOutputRequestedRegion(
DataObject *)
override;
159 GenerateInputRequestedRegion()
override;
163 GenerateData()
override;
184 EstimateShapeModels()
override;
187 EstimatePCAShapeModelParameters();
190 CalculateInnerProduct();
207 unsigned int m_NumberOfPixels{ 0 };
210 unsigned int m_NumberOfTrainingImages{ 0 };
217 #ifndef ITK_MANUAL_INSTANTIATION
218 # include "itkImagePCAShapeModelEstimator.hxx"
typename OutputImageType::Pointer OutputImagePointer
MatrixOfDoubleType m_InnerProduct
VectorOfDoubleType m_EigenValues
std::vector< InputImageConstIterator > InputImageIteratorArray
ImageBaseType::SizeType SizeType
vnl_matrix< int > MatrixOfIntegerType
typename TInputImage::SizeType ImageSizeType
Control indentation during Print() invocation.
Base class for ImagePCAShapeModelEstimator object.
typename InputImageType::PixelType InputImagePixelType
A multi-dimensional iterator templated over image type that walks a region of pixels.
Base class for all process objects that output image data.
typename TInputImage::PixelType InputPixelType
typename InputImageType::Pointer InputImagePointer
vnl_vector< double > VectorOfDoubleType
VectorOfDoubleType m_EigenVectorNormalizedEnergy
TInputImage InputImageType
VectorOfDoubleType m_Means
InputImageIteratorArray m_InputImageIteratorArray
vnl_matrix< double > MatrixOfDoubleType
Base class for statistical shape model estimation.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
unsigned int m_NumberOfPrincipalComponentsRequired
MatrixOfDoubleType m_EigenVectors
A multi-dimensional iterator templated over image type that walks a region of pixels.
std::vector< InputImageConstPointer > InputImagePointerArray
typename InputImageType::ConstPointer InputImageConstPointer
TOutputImage OutputImageType
Base class for all data objects in ITK.