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 > >
92 TInputImage::ImageDimension);
96 TBasisImage::ImageDimension);
106 itkSetConstObjectMacro(
Image, InputImageType);
107 itkGetConstObjectMacro(
Image, InputImageType);
111 itkSetConstObjectMacro(MeanImage, BasisImageType);
112 itkGetConstObjectMacro(MeanImage, BasisImageType);
131 itkGetConstMacro(Projection, BasisVectorType);
136 virtual void PrintSelf(std::ostream & os,
Indent indent)
const ITK_OVERRIDE;
146 void operator=(const Self &) ITK_DELETE_FUNCTION;
160 #ifndef ITK_MANUAL_INSTANTIATION 161 #include "itkImagePCADecompositionCalculator.hxx" void CalculateBasisMatrix()
TInputImage::ConstPointer InputImageConstPointer
static const unsigned int InputImageDimension
ImagePCADecompositionCalculator()
void CalculateRecenteredImageAsVector()
BasisImageConstPointer m_MeanImage
TBasisImage BasisImageType
TBasisImage::ConstPointer BasisImageConstPointer
Decomposes an image into directions along basis components.
BasisVectorType m_ImageAsVector
BasisImagePointerVector GetBasisImages()
BasisImagePointerVector m_BasisImages
InputImageConstPointer m_Image
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes...
SmartPointer< Self > Pointer
std::vector< BasisImagePointer > BasisImagePointerVector
unsigned long SizeValueType
virtual void PrintSelf(std::ostream &os, Indent indent) const override
ImagePCADecompositionCalculator Self
Base class for ImagePCAShapeModelEstimator object.
BasisVectorType m_Projection
virtual ~ImagePCADecompositionCalculator()
static const unsigned int BasisImageDimension
TBasisImage::Pointer BasisImagePointer
vnl_matrix< BasisPixelType > BasisMatrixType
SmartPointer< const Self > ConstPointer
TInputImage::Pointer InputImagePointer
BasisMatrixType m_BasisMatrix
BasisImageType::SizeType BasisSizeType
Control indentation during Print() invocation.
void SetBasisFromModel(ModelPointerType model)
vnl_vector< BasisPixelType > BasisVectorType
SizeValueType m_NumPixels
void SetBasisImages(const BasisImagePointerVector &)
TInputImage InputImageType
TBasisImage::PixelType BasisPixelType
ImagePCAShapeModelEstimator< TInputImage, TBasisImage >::Pointer ModelPointerType
Base class for most ITK classes.
Templated n-dimensional image class.
bool m_BasisMatrixCalculated