ITK  4.1.0
Insight Segmentation and Registration Toolkit
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Private Types | Private Member Functions | Private Attributes
itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage > Class Template Reference

#include <itkImagePCADecompositionCalculator.h>

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

List of all members.

Public Types

typedef TBasisImage::ConstPointer BasisImageConstPointer
typedef TBasisImage::Pointer BasisImagePointer
typedef std::vector
< BasisImagePointer
BasisImagePointerVector
typedef TBasisImage BasisImageType
typedef vnl_matrix
< BasisPixelType
BasisMatrixType
typedef TBasisImage::PixelType BasisPixelType
typedef vnl_vector
< BasisPixelType
BasisVectorType
typedef SmartPointer< const SelfConstPointer
typedef TInputImage::ConstPointer InputImageConstPointer
typedef TInputImage::Pointer InputImagePointer
typedef TInputImage InputImageType
typedef
ImagePCAShapeModelEstimator
< TInputImage, TBasisImage >
::Pointer 
ModelPointerType
typedef SmartPointer< SelfPointer
typedef
ImagePCADecompositionCalculator 
Self
typedef Object Superclass

Public Member Functions

void Compute (void)
virtual ::itk::LightObject::Pointer CreateAnother (void) const
BasisImagePointerVector GetBasisImages ()
virtual const char * GetNameOfClass () const
void SetBasisFromModel (ModelPointerType model)
void SetBasisImages (const BasisImagePointerVector &)
virtual void SetImage (const InputImageType *_arg)
virtual const InputImageTypeGetImage ()
virtual void SetMeanImage (const BasisImageType *_arg)
virtual const BasisImageTypeGetMeanImage ()

Static Public Member Functions

static Pointer New ()

Static Public Attributes

static const unsigned int BasisImageDimension = TBasisImage::ImageDimension
static const unsigned int InputImageDimension = TInputImage::ImageDimension

Protected Member Functions

void CalculateBasisMatrix (void)
void CalculateRecenteredImageAsVector (void)

Private Types

typedef BasisImageType::SizeType BasisSizeType

Private Member Functions

 ImagePCADecompositionCalculator (const Self &)
void operator= (const Self &)

Private Attributes

BasisImagePointerVector m_BasisImages
BasisMatrixType m_BasisMatrix
bool m_BasisMatrixCalculated
InputImageConstPointer m_Image
BasisVectorType m_ImageAsVector
BasisImageConstPointer m_MeanImage
SizeValueType m_NumPixels
BasisVectorType m_Projection
BasisSizeType m_Size
virtual BasisVectorType GetProjection () const
 ImagePCADecompositionCalculator ()
virtual ~ImagePCADecompositionCalculator ()
void PrintSelf (std::ostream &os, Indent indent) const

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 basis set of images, and, optionally, a mean image (e.g a translation to a new origin). Typically, this basis/mean image will be the mean and 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, set the basis images with the SetBasisImage method, and optionally set the mean image with the SetMeanImage method. In the PCA case, the zeroth output of the ImagePCAShapeModelEstimator is the mean image and subsequent outputs are the basis images. 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, basis, and mean) must be the same size.
Author:
Zachary Pincus

Definition at line 60 of file itkImagePCADecompositionCalculator.h.


Member Typedef Documentation

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

Definition at line 85 of file itkImagePCADecompositionCalculator.h.

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

Definition at line 81 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 99 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 77 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 102 of file itkImagePCADecompositionCalculator.h.

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 88 of file itkImagePCADecompositionCalculator.h.

template<class TInputImage , class TBasisImage = Image< double, ::itk::GetImageDimension< TInputImage >::ImageDimension >>
typedef BasisImageType::SizeType itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >::BasisSizeType [private]

Definition at line 143 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 103 of file itkImagePCADecompositionCalculator.h.

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 67 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 84 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 80 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 73 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 122 of file itkImagePCADecompositionCalculator.h.

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 66 of file itkImagePCADecompositionCalculator.h.

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 64 of file itkImagePCADecompositionCalculator.h.

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 65 of file itkImagePCADecompositionCalculator.h.


Constructor & Destructor Documentation

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

Return the projection of the image.

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

Return the projection of the image.

Definition at line 134 of file itkImagePCADecompositionCalculator.h.

template<class TInputImage , class TBasisImage = Image< double, ::itk::GetImageDimension< TInputImage >::ImageDimension >>
itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >::ImagePCADecompositionCalculator ( const Self ) [private]

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 >::CalculateRecenteredImageAsVector ( 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 >>
virtual::itk::LightObject::Pointer itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >::CreateAnother ( void  ) const [virtual]

Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.

Reimplemented from itk::Object.

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

Definition at line 118 of file itkImagePCADecompositionCalculator.h.

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

Set and get the input image.

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

Set and get the mean image.

template<class TInputImage , class TBasisImage = Image< double, ::itk::GetImageDimension< TInputImage >::ImageDimension >>
virtual const char* itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >::GetNameOfClass ( ) 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 ( ) const [virtual]

Return the projection of the image.

template<class TInputImage , class TBasisImage = Image< double, ::itk::GetImageDimension< TInputImage >::ImageDimension >>
static 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 >::operator= ( const Self ) [private]

Mutex lock to protect modification to the reference count

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]

Return the projection of the image.

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 )

Set and get 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 and get the input image.

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

Set and get the mean image.


Member Data Documentation

template<class TInputImage , class TBasisImage = Image< double, ::itk::GetImageDimension< TInputImage >::ImageDimension >>
const unsigned int itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >::BasisImageDimension = TBasisImage::ImageDimension [static]

Basis Image dimension

Definition at line 96 of file itkImagePCADecompositionCalculator.h.

template<class TInputImage , class TBasisImage = Image< double, ::itk::GetImageDimension< TInputImage >::ImageDimension >>
const unsigned int itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >::InputImageDimension = TInputImage::ImageDimension [static]

Input Image dimension

Definition at line 92 of file itkImagePCADecompositionCalculator.h.

template<class TInputImage , class TBasisImage = Image< double, ::itk::GetImageDimension< TInputImage >::ImageDimension >>
BasisImagePointerVector itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >::m_BasisImages [private]

Definition at line 150 of file itkImagePCADecompositionCalculator.h.

template<class TInputImage , class TBasisImage = Image< double, ::itk::GetImageDimension< TInputImage >::ImageDimension >>
BasisMatrixType itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >::m_BasisMatrix [private]

Definition at line 154 of file itkImagePCADecompositionCalculator.h.

template<class TInputImage , class TBasisImage = Image< double, ::itk::GetImageDimension< TInputImage >::ImageDimension >>
bool itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >::m_BasisMatrixCalculated [private]

Definition at line 155 of file itkImagePCADecompositionCalculator.h.

template<class TInputImage , class TBasisImage = Image< double, ::itk::GetImageDimension< TInputImage >::ImageDimension >>
InputImageConstPointer itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >::m_Image [private]

Definition at line 153 of file itkImagePCADecompositionCalculator.h.

template<class TInputImage , class TBasisImage = Image< double, ::itk::GetImageDimension< TInputImage >::ImageDimension >>
BasisVectorType itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >::m_ImageAsVector [private]

Definition at line 149 of file itkImagePCADecompositionCalculator.h.

template<class TInputImage , class TBasisImage = Image< double, ::itk::GetImageDimension< TInputImage >::ImageDimension >>
BasisImageConstPointer itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >::m_MeanImage [private]

Definition at line 151 of file itkImagePCADecompositionCalculator.h.

template<class TInputImage , class TBasisImage = Image< double, ::itk::GetImageDimension< TInputImage >::ImageDimension >>
SizeValueType itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >::m_NumPixels [private]

Definition at line 156 of file itkImagePCADecompositionCalculator.h.

template<class TInputImage , class TBasisImage = Image< double, ::itk::GetImageDimension< TInputImage >::ImageDimension >>
BasisVectorType itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >::m_Projection [private]

Definition at line 148 of file itkImagePCADecompositionCalculator.h.

template<class TInputImage , class TBasisImage = Image< double, ::itk::GetImageDimension< TInputImage >::ImageDimension >>
BasisSizeType itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >::m_Size [private]

Definition at line 152 of file itkImagePCADecompositionCalculator.h.


The documentation for this class was generated from the following file: