18 #ifndef itkImagePCADecompositionCalculator_h
19 #define itkImagePCADecompositionCalculator_h
23 #include "vnl/vnl_vector.h"
24 #include "vnl/vnl_matrix.h"
58 template<
typename TInputImage,
59 typename TBasisImage = Image< double, TInputImage::ImageDimension > >
93 static constexpr
unsigned int InputImageDimension = TInputImage::ImageDimension;
96 static constexpr
unsigned int BasisImageDimension = TBasisImage::ImageDimension;
136 void PrintSelf(std::ostream & os,
Indent indent)
const override;
138 void CalculateBasisMatrix();
140 void CalculateRecenteredImageAsVector();
157 #ifndef ITK_MANUAL_INSTANTIATION
158 #include "itkImagePCADecompositionCalculator.hxx"
vnl_matrix< BasisPixelType > BasisMatrixType
Light weight base class for most itk classes.
typename TBasisImage::ConstPointer BasisImageConstPointer
BasisImageConstPointer m_MeanImage
typename TBasisImage::Pointer BasisImagePointer
Decomposes an image into directions along basis components.
unsigned long SizeValueType
BasisVectorType m_ImageAsVector
std::vector< BasisImagePointer > BasisImagePointerVector
BasisImagePointerVector GetBasisImages()
BasisImagePointerVector m_BasisImages
InputImageConstPointer m_Image
typename TBasisImage::PixelType BasisPixelType
Base class for ImagePCAShapeModelEstimator object.
BasisVectorType m_Projection
vnl_vector< BasisPixelType > BasisVectorType
ImageBaseType::SizeType SizeType
typename TInputImage::Pointer InputImagePointer
typename TInputImage::ConstPointer InputImageConstPointer
typename BasisImageType::SizeType BasisSizeType
BasisMatrixType m_BasisMatrix
TInputImage InputImageType
TBasisImage BasisImageType
Control indentation during Print() invocation.
SizeValueType m_NumPixels
Base class for most ITK classes.
Templated n-dimensional image class.
typename ImagePCAShapeModelEstimator< TInputImage, TBasisImage >::Pointer ModelPointerType
bool m_BasisMatrixCalculated