Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage > Class Template Reference
[Operators]

Decomposes an image into directions along basis components. More...

#include <itkImagePCADecompositionCalculator.h>

Inheritance diagram for itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >:

Inheritance graph
[legend]
Collaboration diagram for itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef ImagePCADecompositionCalculator Self
typedef Object Superclass
typedef SmartPointer< SelfPointer
typedef SmartPointer< const
Self
ConstPointer
typedef TInputImage InputImageType
typedef TBasisImage BasisImageType
typedef TInputImage::Pointer InputImagePointer
typedef TBasisImage::Pointer BasisImagePointer
typedef TInputImage::ConstPointer InputImageConstPointer
typedef TBasisImage::PixelType BasisPixelType
typedef std::vector< BasisImagePointerBasisImagePointerVector
typedef vnl_matrix< BasisPixelTypeBasisMatrixType
typedef vnl_vector< BasisPixelTypeBasisVectorType
typedef ImagePCAShapeModelEstimator<
TInputImage, TBasisImage
>::Pointer 
ModelPointerType

Public Member Functions

virtual const char * GetClassName () const
 itkStaticConstMacro (InputImageDimension, unsigned int, TInputImage::ImageDimension)
 itkStaticConstMacro (BasisImageDimension, unsigned int, TBasisImage::ImageDimension)
virtual void SetImage (const InputImageType *_arg)
void SetBasisImages (const BasisImagePointerVector _arg)
BasisImagePointerVectorGetBasisImages (void)
void SetBasisFromModel (ModelPointerType model)
void Compute (void)
virtual BasisVectorType GetProjection ()

Static Public Member Functions

Pointer New ()

Protected Member Functions

 ImagePCADecompositionCalculator ()
virtual ~ImagePCADecompositionCalculator ()
void PrintSelf (std::ostream &os, Indent indent) const
void CalculateBasisMatrix (void)
void CalculateImageAsVector (void)

Detailed Description

template<class TInputImage, class TBasisImage = Image<double, ::itk::GetImageDimension<TInputImage>::ImageDimension>>
class itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >

Decomposes an image into directions along basis components.

This calculator computes the projection of an image into a subspace specified by some orthonormal basis. Typically, this basis will be the principal components of an image data set, as calculated by an ImagePCAShapeModelEstimator. The output of the calculator is a vnl_vector containing the coefficients along each dimension of the provided basis set. To use this calculator, first set each basis image with the SetBasisImage method. In the PCA case, the basis images are the outputs of the ImagePCAShapeModelEstimator (except the zeroth output, which is the average image). SetBasisFromModel is a convenience method to set all of this information from a given ImagePCAShapeModelEstimator instance.

This class is templated over the input image type and the type of images used to describe the basis.

Warning:
This method assumes that the input image consists of scalar pixel types.

All images (input and basis) must be the same size.

Author:
Zachary Pincus

Definition at line 59 of file itkImagePCADecompositionCalculator.h.


Member Typedef Documentation

template<class TInputImage, class TBasisImage = Image<double, ::itk::GetImageDimension<TInputImage>::ImageDimension>>
typedef TBasisImage::Pointer itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >::BasisImagePointer
 

Definition at line 80 of file itkImagePCADecompositionCalculator.h.

template<class TInputImage, class TBasisImage = Image<double, ::itk::GetImageDimension<TInputImage>::ImageDimension>>
typedef std::vector< BasisImagePointer > itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >::BasisImagePointerVector
 

Vector of basis image pointers.

Definition at line 98 of file itkImagePCADecompositionCalculator.h.

template<class TInputImage, class TBasisImage = Image<double, ::itk::GetImageDimension<TInputImage>::ImageDimension>>
typedef TBasisImage itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >::BasisImageType
 

Definition at line 76 of file itkImagePCADecompositionCalculator.h.

template<class TInputImage, class TBasisImage = Image<double, ::itk::GetImageDimension<TInputImage>::ImageDimension>>
typedef vnl_matrix<BasisPixelType> itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >::BasisMatrixType
 

Type definitions for internal vectors and matrices

Definition at line 101 of file itkImagePCADecompositionCalculator.h.

Referenced by itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >::~ImagePCADecompositionCalculator().

template<class TInputImage, class TBasisImage = Image<double, ::itk::GetImageDimension<TInputImage>::ImageDimension>>
typedef TBasisImage::PixelType itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >::BasisPixelType
 

Basis image pixel type: this is also the type of the optput vector

Definition at line 86 of file itkImagePCADecompositionCalculator.h.

template<class TInputImage, class TBasisImage = Image<double, ::itk::GetImageDimension<TInputImage>::ImageDimension>>
typedef vnl_vector<BasisPixelType> itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >::BasisVectorType
 

Definition at line 102 of file itkImagePCADecompositionCalculator.h.

Referenced by itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >::GetBasisImages(), and itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >::~ImagePCADecompositionCalculator().

template<class TInputImage, class TBasisImage = Image<double, ::itk::GetImageDimension<TInputImage>::ImageDimension>>
typedef SmartPointer<const Self> itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >::ConstPointer
 

Reimplemented from itk::Object.

Definition at line 66 of file itkImagePCADecompositionCalculator.h.

template<class TInputImage, class TBasisImage = Image<double, ::itk::GetImageDimension<TInputImage>::ImageDimension>>
typedef TInputImage::ConstPointer itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >::InputImageConstPointer
 

Const Pointer type for the image.

Definition at line 83 of file itkImagePCADecompositionCalculator.h.

template<class TInputImage, class TBasisImage = Image<double, ::itk::GetImageDimension<TInputImage>::ImageDimension>>
typedef TInputImage::Pointer itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >::InputImagePointer
 

Pointer types for the image.

Definition at line 79 of file itkImagePCADecompositionCalculator.h.

template<class TInputImage, class TBasisImage = Image<double, ::itk::GetImageDimension<TInputImage>::ImageDimension>>
typedef TInputImage itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >::InputImageType
 

Type definitions for the input images.

Definition at line 75 of file itkImagePCADecompositionCalculator.h.

template<class TInputImage, class TBasisImage = Image<double, ::itk::GetImageDimension<TInputImage>::ImageDimension>>
typedef ImagePCAShapeModelEstimator<TInputImage, TBasisImage>::Pointer itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >::ModelPointerType
 

Type definition of a compatible ImagePCAShapeModelEstimator

Definition at line 115 of file itkImagePCADecompositionCalculator.h.

Referenced by itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >::GetBasisImages().

template<class TInputImage, class TBasisImage = Image<double, ::itk::GetImageDimension<TInputImage>::ImageDimension>>
typedef SmartPointer<Self> itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >::Pointer
 

Reimplemented from itk::Object.

Definition at line 65 of file itkImagePCADecompositionCalculator.h.

Referenced by itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >::GetBasisImages().

template<class TInputImage, class TBasisImage = Image<double, ::itk::GetImageDimension<TInputImage>::ImageDimension>>
typedef ImagePCADecompositionCalculator itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >::Self
 

Standard class typedefs.

Reimplemented from itk::Object.

Definition at line 63 of file itkImagePCADecompositionCalculator.h.

Referenced by itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >::~ImagePCADecompositionCalculator().

template<class TInputImage, class TBasisImage = Image<double, ::itk::GetImageDimension<TInputImage>::ImageDimension>>
typedef Object itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >::Superclass
 

Reimplemented from itk::Object.

Definition at line 64 of file itkImagePCADecompositionCalculator.h.


Constructor & Destructor Documentation

template<class TInputImage, class TBasisImage = Image<double, ::itk::GetImageDimension<TInputImage>::ImageDimension>>
itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >::ImagePCADecompositionCalculator  )  [protected]
 

template<class TInputImage, class TBasisImage = Image<double, ::itk::GetImageDimension<TInputImage>::ImageDimension>>
virtual itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >::~ImagePCADecompositionCalculator  )  [inline, protected, virtual]
 

Definition at line 129 of file itkImagePCADecompositionCalculator.h.

References itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >::BasisMatrixType, itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >::BasisVectorType, and itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >::Self.


Member Function Documentation

template<class TInputImage, class TBasisImage = Image<double, ::itk::GetImageDimension<TInputImage>::ImageDimension>>
void itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >::CalculateBasisMatrix void   )  [protected]
 

template<class TInputImage, class TBasisImage = Image<double, ::itk::GetImageDimension<TInputImage>::ImageDimension>>
void itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >::CalculateImageAsVector void   )  [protected]
 

template<class TInputImage, class TBasisImage = Image<double, ::itk::GetImageDimension<TInputImage>::ImageDimension>>
void itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >::Compute void   ) 
 

Compute the PCA decomposition of the input image.

template<class TInputImage, class TBasisImage = Image<double, ::itk::GetImageDimension<TInputImage>::ImageDimension>>
BasisImagePointerVector& itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >::GetBasisImages void   )  [inline]
 

Get the basis images.

Definition at line 111 of file itkImagePCADecompositionCalculator.h.

References itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >::BasisVectorType, itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >::ModelPointerType, and itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >::Pointer.

template<class TInputImage, class TBasisImage = Image<double, ::itk::GetImageDimension<TInputImage>::ImageDimension>>
virtual const char* itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >::GetClassName  )  const [virtual]
 

Run-time type information (and related methods).

Reimplemented from itk::Object.

template<class TInputImage, class TBasisImage = Image<double, ::itk::GetImageDimension<TInputImage>::ImageDimension>>
virtual BasisVectorType itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >::GetProjection  )  [virtual]
 

Return the projection of the image.

template<class TInputImage, class TBasisImage = Image<double, ::itk::GetImageDimension<TInputImage>::ImageDimension>>
itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >::itkStaticConstMacro BasisImageDimension  ,
unsigned  int,
TBasisImage::ImageDimension 
 

Basis Image dimension

template<class TInputImage, class TBasisImage = Image<double, ::itk::GetImageDimension<TInputImage>::ImageDimension>>
itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >::itkStaticConstMacro InputImageDimension  ,
unsigned  int,
TInputImage::ImageDimension 
 

Input Image dimension

template<class TInputImage, class TBasisImage = Image<double, ::itk::GetImageDimension<TInputImage>::ImageDimension>>
Pointer itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >::New  )  [static]
 

Method for creation through the object factory.

Reimplemented from itk::Object.

template<class TInputImage, class TBasisImage = Image<double, ::itk::GetImageDimension<TInputImage>::ImageDimension>>
void itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >::PrintSelf std::ostream &  os,
Indent  indent
const [protected, virtual]
 

Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from itk::Object.

template<class TInputImage, class TBasisImage = Image<double, ::itk::GetImageDimension<TInputImage>::ImageDimension>>
void itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >::SetBasisFromModel ModelPointerType  model  ) 
 

Set the basis images from a ImagePCAShapeModelEstimator

template<class TInputImage, class TBasisImage = Image<double, ::itk::GetImageDimension<TInputImage>::ImageDimension>>
void itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >::SetBasisImages const BasisImagePointerVector  _arg  ) 
 

Set the basis images.

template<class TInputImage, class TBasisImage = Image<double, ::itk::GetImageDimension<TInputImage>::ImageDimension>>
virtual void itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >::SetImage const InputImageType _arg  )  [virtual]
 

Set the input image.


The documentation for this class was generated from the following file:
Generated at Wed Mar 30 00:22:07 2005 for ITK by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2000