18#ifndef itkImagePCADecompositionCalculator_h
19#define itkImagePCADecompositionCalculator_h
23#include "vnl/vnl_vector.h"
24#include "vnl/vnl_matrix.h"
58template <
typename TInputImage,
typename TBasisImage = Image<
double, TInputImage::ImageDimension>>
92 static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
95 static constexpr unsigned int BasisImageDimension = TBasisImage::ImageDimension;
121 return m_BasisImages;
162 bool m_BasisMatrixCalculated{};
167#ifndef ITK_MANUAL_INSTANTIATION
168# include "itkImagePCADecompositionCalculator.hxx"
Decomposes an image into directions along basis components.
typename TBasisImage::Pointer BasisImagePointer
TBasisImage BasisImageType
typename TBasisImage::ConstPointer BasisImageConstPointer
vnl_matrix< BasisPixelType > BasisMatrixType
void CalculateBasisMatrix()
typename BasisImageType::SizeType BasisSizeType
BasisImagePointerVector GetBasisImages()
void PrintSelf(std::ostream &os, Indent indent) const override
typename TInputImage::Pointer InputImagePointer
void CalculateRecenteredImageAsVector()
~ImagePCADecompositionCalculator() override=default
void SetBasisFromModel(ModelPointerType model)
void SetBasisImages(const BasisImagePointerVector &)
ImagePCADecompositionCalculator()
typename TBasisImage::PixelType BasisPixelType
vnl_vector< BasisPixelType > BasisVectorType
typename ImagePCAShapeModelEstimator< TInputImage, TBasisImage >::Pointer ModelPointerType
typename TInputImage::ConstPointer InputImageConstPointer
TInputImage InputImageType
std::vector< BasisImagePointer > BasisImagePointerVector
Templated n-dimensional image class.
Control indentation during Print() invocation.
Light weight base class for most itk classes.
Base class for most ITK classes.
SmartPointer< const Self > ConstPointer
SmartPointer< Self > Pointer
ImageBaseType::SizeType SizeType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
unsigned long SizeValueType