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

itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage > Class Template Reference
[Image Functions]

Compute the signed distance from a N-dimensional PCA Shape. More...

#include <itkPCAShapeSignedDistanceFunction.h>

Inheritance diagram for itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >:

Inheritance graph
[legend]
Collaboration diagram for itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef PCAShapeSignedDistanceFunction Self
typedef ShapeSignedDistanceFunction<
TCoordRep, VSpaceDimension > 
Superclass
typedef SmartPointer< SelfPointer
typedef SmartPointer< const
Self
ConstPointer
typedef Superclass::CoordRepType CoordRepType
typedef Superclass::InputType InputType
typedef Superclass::OutputType OutputType
typedef Superclass::PointType PointType
typedef Superclass::ParametersType ParametersType
typedef TImage ImageType
typedef ImageType::Pointer ImagePointer
typedef std::vector< ImagePointerImagePointerVector
typedef Transform< CoordRepType,
itkGetStaticConstMacro(SpaceDimension),
itkGetStaticConstMacro(SpaceDimension) 
TransformType )
typedef InterpolateImageFunction<
ImageType, CoordRepType
InterpolatorType
typedef InterpolatorType::Pointer InterpolatorPointer
typedef std::vector< InterpolatorPointerInterpolatorPointerVector
typedef ExtrapolateImageFunction<
ImageType, CoordRepType
ExtrapolatorType
typedef ExtrapolatorType::Pointer ExtrapolatorPointer
typedef std::vector< ExtrapolatorPointerExtrapolatorPointerVector
typedef ImageFunction< ImageType,
double, CoordRepType
FunctionType
typedef FunctionType::Pointer FunctionPointer
typedef std::vector< FunctionPointerFunctionPointerVector

Public Member Functions

virtual const char * GetClassName () const
 itkStaticConstMacro (SpaceDimension, unsigned int, Superclass::SpaceDimension)
virtual OutputType Evaluate (const PointType &point) const
virtual void Initialize () throw ( ExceptionObject )
void SetNumberOfPrincipalComponents (unsigned int n)
virtual unsigned int GetNumberOfPrincipalComponents ()
virtual void SetMeanImage (ImageType *_arg)
virtual ImageTypeGetMeanImage ()
void SetPrincipalComponentImages (ImagePointerVector v)
virtual void SetPrincipalComponentStandardDeviations (ParametersType _arg)
virtual ParametersType GetPrincipalComponentStandardDeviations ()
virtual void SetTransform (TransformType *_arg)
virtual TransformTypeGetTransform ()
virtual void SetParameters (const ParametersType &)
virtual const ParametersTypeGetParameters (void) const
virtual unsigned int GetNumberOfShapeParameters (void) const
virtual unsigned int GetNumberOfPoseParameters (void) const

Static Public Member Functions

Pointer New ()

Protected Member Functions

 PCAShapeSignedDistanceFunction ()
 ~PCAShapeSignedDistanceFunction ()
void PrintSelf (std::ostream &os, Indent indent) const

Detailed Description

template<typename TCoordRep, unsigned int VSpaceDimension, typename TImage = Image<double,VSpaceDimension>>
class itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >

Compute the signed distance from a N-dimensional PCA Shape.

This class computes the signed distance from a N-dimensional shape defined by: (1) a mean signed distance image $ M(x) $, (2) the first $ q $ principal components images $ P_i(x) $ and (3) a transform $ T(x) $ to define the pose (i.e. position or orientation of the shape).

A particular instance of the shape is defined by a set of parameters $ p $. The first $ q $ parameters defines the weights applied to each principal components and the remaining parameters is used to define the transform. The user should refer to the documentation of the particular Transform class being used. The first set of parameters are called the ShapeParameters and the remaining parameters the PoseParameters.

The method Evaluate( point x ) returns the approximate signed to the shape at point x such that:

\[ s = M(T(x)) + \sum_i^{q} p[i] * \sigma[i] * P_i(T(x)) \]

Where [i] are the square root of the eigenvalues. These are defined using method SetPrincipalComponentStandardDeviations().

This class is templated over the coordinate representation type (e.g. float or double) and the space dimension.

See also:
ShapeSignedDistanceFunction

Transform

Definition at line 67 of file itkPCAShapeSignedDistanceFunction.h.


Member Typedef Documentation

template<typename TCoordRep, unsigned int VSpaceDimension, typename TImage = Image<double,VSpaceDimension>>
typedef SmartPointer<const Self> itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::ConstPointer
 

Reimplemented from itk::ShapeSignedDistanceFunction< TCoordRep, VSpaceDimension >.

Definition at line 77 of file itkPCAShapeSignedDistanceFunction.h.

template<typename TCoordRep, unsigned int VSpaceDimension, typename TImage = Image<double,VSpaceDimension>>
typedef Superclass::CoordRepType itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::CoordRepType
 

CoordRep typedef support.

Reimplemented from itk::ShapeSignedDistanceFunction< TCoordRep, VSpaceDimension >.

Definition at line 91 of file itkPCAShapeSignedDistanceFunction.h.

template<typename TCoordRep, unsigned int VSpaceDimension, typename TImage = Image<double,VSpaceDimension>>
typedef ExtrapolatorType::Pointer itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::ExtrapolatorPointer
 

Definition at line 123 of file itkPCAShapeSignedDistanceFunction.h.

template<typename TCoordRep, unsigned int VSpaceDimension, typename TImage = Image<double,VSpaceDimension>>
typedef std::vector<ExtrapolatorPointer> itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::ExtrapolatorPointerVector
 

Definition at line 124 of file itkPCAShapeSignedDistanceFunction.h.

Referenced by itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::~PCAShapeSignedDistanceFunction().

template<typename TCoordRep, unsigned int VSpaceDimension, typename TImage = Image<double,VSpaceDimension>>
typedef ExtrapolateImageFunction<ImageType, CoordRepType> itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::ExtrapolatorType
 

extrapolator typedef support. Definition at line 122 of file itkPCAShapeSignedDistanceFunction.h.

template<typename TCoordRep, unsigned int VSpaceDimension, typename TImage = Image<double,VSpaceDimension>>
typedef FunctionType::Pointer itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::FunctionPointer
 

Definition at line 128 of file itkPCAShapeSignedDistanceFunction.h.

template<typename TCoordRep, unsigned int VSpaceDimension, typename TImage = Image<double,VSpaceDimension>>
typedef std::vector<FunctionPointer> itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::FunctionPointerVector
 

Definition at line 129 of file itkPCAShapeSignedDistanceFunction.h.

Referenced by itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::~PCAShapeSignedDistanceFunction().

template<typename TCoordRep, unsigned int VSpaceDimension, typename TImage = Image<double,VSpaceDimension>>
typedef ImageFunction<ImageType, double, CoordRepType> itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::FunctionType
 

function typedef support. Definition at line 127 of file itkPCAShapeSignedDistanceFunction.h.

template<typename TCoordRep, unsigned int VSpaceDimension, typename TImage = Image<double,VSpaceDimension>>
typedef ImageType::Pointer itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::ImagePointer
 

Definition at line 108 of file itkPCAShapeSignedDistanceFunction.h.

Referenced by itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::~PCAShapeSignedDistanceFunction().

template<typename TCoordRep, unsigned int VSpaceDimension, typename TImage = Image<double,VSpaceDimension>>
typedef std::vector<ImagePointer> itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::ImagePointerVector
 

Definition at line 109 of file itkPCAShapeSignedDistanceFunction.h.

Referenced by itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::~PCAShapeSignedDistanceFunction().

template<typename TCoordRep, unsigned int VSpaceDimension, typename TImage = Image<double,VSpaceDimension>>
typedef TImage itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::ImageType
 

Image typedef support. Definition at line 107 of file itkPCAShapeSignedDistanceFunction.h.

template<typename TCoordRep, unsigned int VSpaceDimension, typename TImage = Image<double,VSpaceDimension>>
typedef Superclass::InputType itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::InputType
 

InputeType typedef support.

Reimplemented from itk::ShapeSignedDistanceFunction< TCoordRep, VSpaceDimension >.

Definition at line 94 of file itkPCAShapeSignedDistanceFunction.h.

template<typename TCoordRep, unsigned int VSpaceDimension, typename TImage = Image<double,VSpaceDimension>>
typedef InterpolatorType::Pointer itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::InterpolatorPointer
 

Definition at line 118 of file itkPCAShapeSignedDistanceFunction.h.

template<typename TCoordRep, unsigned int VSpaceDimension, typename TImage = Image<double,VSpaceDimension>>
typedef std::vector<InterpolatorPointer> itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::InterpolatorPointerVector
 

Definition at line 119 of file itkPCAShapeSignedDistanceFunction.h.

Referenced by itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::~PCAShapeSignedDistanceFunction().

template<typename TCoordRep, unsigned int VSpaceDimension, typename TImage = Image<double,VSpaceDimension>>
typedef InterpolateImageFunction<ImageType, CoordRepType> itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::InterpolatorType
 

Interpolator typedef support. Definition at line 117 of file itkPCAShapeSignedDistanceFunction.h.

template<typename TCoordRep, unsigned int VSpaceDimension, typename TImage = Image<double,VSpaceDimension>>
typedef Superclass::OutputType itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::OutputType
 

OutputType typedef support.

Reimplemented from itk::ShapeSignedDistanceFunction< TCoordRep, VSpaceDimension >.

Definition at line 97 of file itkPCAShapeSignedDistanceFunction.h.

template<typename TCoordRep, unsigned int VSpaceDimension, typename TImage = Image<double,VSpaceDimension>>
typedef Superclass::ParametersType itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::ParametersType
 

Parameters typedef support.

Reimplemented from itk::ShapeSignedDistanceFunction< TCoordRep, VSpaceDimension >.

Definition at line 103 of file itkPCAShapeSignedDistanceFunction.h.

Referenced by itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::SetPrincipalComponentImages(), and itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::~PCAShapeSignedDistanceFunction().

template<typename TCoordRep, unsigned int VSpaceDimension, typename TImage = Image<double,VSpaceDimension>>
typedef SmartPointer<Self> itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::Pointer
 

Reimplemented from itk::ShapeSignedDistanceFunction< TCoordRep, VSpaceDimension >.

Definition at line 76 of file itkPCAShapeSignedDistanceFunction.h.

template<typename TCoordRep, unsigned int VSpaceDimension, typename TImage = Image<double,VSpaceDimension>>
typedef Superclass::PointType itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::PointType
 

Point typedef support.

Reimplemented from itk::ShapeSignedDistanceFunction< TCoordRep, VSpaceDimension >.

Definition at line 100 of file itkPCAShapeSignedDistanceFunction.h.

template<typename TCoordRep, unsigned int VSpaceDimension, typename TImage = Image<double,VSpaceDimension>>
typedef PCAShapeSignedDistanceFunction itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::Self
 

Standard class typedefs.

Reimplemented from itk::ShapeSignedDistanceFunction< TCoordRep, VSpaceDimension >.

Definition at line 73 of file itkPCAShapeSignedDistanceFunction.h.

Referenced by itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::~PCAShapeSignedDistanceFunction().

template<typename TCoordRep, unsigned int VSpaceDimension, typename TImage = Image<double,VSpaceDimension>>
typedef ShapeSignedDistanceFunction< TCoordRep, VSpaceDimension> itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::Superclass
 

Reimplemented from itk::ShapeSignedDistanceFunction< TCoordRep, VSpaceDimension >.

Definition at line 75 of file itkPCAShapeSignedDistanceFunction.h.

template<typename TCoordRep, unsigned int VSpaceDimension, typename TImage = Image<double,VSpaceDimension>>
typedef Transform<CoordRepType, itkGetStaticConstMacro(SpaceDimension), itkGetStaticConstMacro(SpaceDimension) itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::TransformType)
 

Transform typedef support. Definition at line 114 of file itkPCAShapeSignedDistanceFunction.h.

Referenced by itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::SetPrincipalComponentImages().


Constructor & Destructor Documentation

template<typename TCoordRep, unsigned int VSpaceDimension, typename TImage = Image<double,VSpaceDimension>>
itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::PCAShapeSignedDistanceFunction  )  [protected]
 

template<typename TCoordRep, unsigned int VSpaceDimension, typename TImage = Image<double,VSpaceDimension>>
itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::~PCAShapeSignedDistanceFunction  )  [inline, protected]
 

Definition at line 182 of file itkPCAShapeSignedDistanceFunction.h.

References itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::ExtrapolatorPointerVector, itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::FunctionPointerVector, itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::ImagePointer, itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::ImagePointerVector, itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::InterpolatorPointerVector, itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::ParametersType, and itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::Self.


Member Function Documentation

template<typename TCoordRep, unsigned int VSpaceDimension, typename TImage = Image<double,VSpaceDimension>>
virtual OutputType itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::Evaluate const PointType point  )  const [virtual]
 

Evaluate the signed distance from a shape at a given position.

Implements itk::ShapeSignedDistanceFunction< TCoordRep, VSpaceDimension >.

template<typename TCoordRep, unsigned int VSpaceDimension, typename TImage = Image<double,VSpaceDimension>>
virtual const char* itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::GetClassName  )  const [virtual]
 

Run-time type information (and related methods).

Reimplemented from itk::ShapeSignedDistanceFunction< TCoordRep, VSpaceDimension >.

template<typename TCoordRep, unsigned int VSpaceDimension, typename TImage = Image<double,VSpaceDimension>>
virtual ImageType* itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::GetMeanImage  )  [virtual]
 

Set/Get the mean image.

template<typename TCoordRep, unsigned int VSpaceDimension, typename TImage = Image<double,VSpaceDimension>>
virtual unsigned int itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::GetNumberOfPoseParameters void   )  const [inline, virtual]
 

A PCAShape is defined by a set of shape and pose parameters.

Implements itk::ShapeSignedDistanceFunction< TCoordRep, VSpaceDimension >.

Definition at line 168 of file itkPCAShapeSignedDistanceFunction.h.

template<typename TCoordRep, unsigned int VSpaceDimension, typename TImage = Image<double,VSpaceDimension>>
virtual unsigned int itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::GetNumberOfPrincipalComponents  )  [virtual]
 

Set/Get the number of principal components SetNumberOfPrincipalComponents must be called before SetParameters

template<typename TCoordRep, unsigned int VSpaceDimension, typename TImage = Image<double,VSpaceDimension>>
virtual unsigned int itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::GetNumberOfShapeParameters void   )  const [inline, virtual]
 

A PCAShape is defined by a set of shape and pose parameters.

Implements itk::ShapeSignedDistanceFunction< TCoordRep, VSpaceDimension >.

Definition at line 166 of file itkPCAShapeSignedDistanceFunction.h.

template<typename TCoordRep, unsigned int VSpaceDimension, typename TImage = Image<double,VSpaceDimension>>
virtual const ParametersType& itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::GetParameters void   )  const [inline, virtual]
 

A PCAShape is defined by a set of shape and pose parameters.

Implements itk::ShapeSignedDistanceFunction< TCoordRep, VSpaceDimension >.

Definition at line 164 of file itkPCAShapeSignedDistanceFunction.h.

template<typename TCoordRep, unsigned int VSpaceDimension, typename TImage = Image<double,VSpaceDimension>>
virtual ParametersType itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::GetPrincipalComponentStandardDeviations  )  [virtual]
 

Set/Get the principal component standard deviations. These values corresponds to the square root of the eigenvalues of the principal components.

template<typename TCoordRep, unsigned int VSpaceDimension, typename TImage = Image<double,VSpaceDimension>>
virtual TransformType* itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::GetTransform  )  [virtual]
 

Set/Get transform.

template<typename TCoordRep, unsigned int VSpaceDimension, typename TImage = Image<double,VSpaceDimension>>
virtual void itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::Initialize  )  throw ( ExceptionObject ) [virtual]
 

Initialize must be called before the first call of Evaluate() to allow the class to validate any inputs.

Reimplemented from itk::ShapeSignedDistanceFunction< TCoordRep, VSpaceDimension >.

template<typename TCoordRep, unsigned int VSpaceDimension, typename TImage = Image<double,VSpaceDimension>>
itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::itkStaticConstMacro SpaceDimension  ,
unsigned  int,
Superclass::SpaceDimension 
 

Dimension underlying input image.

template<typename TCoordRep, unsigned int VSpaceDimension, typename TImage = Image<double,VSpaceDimension>>
Pointer itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::New  )  [static]
 

New macro for creation of through the object factory.

Reimplemented from itk::Object.

template<typename TCoordRep, unsigned int VSpaceDimension, typename TImage = Image<double,VSpaceDimension>>
void itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::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::ShapeSignedDistanceFunction< TCoordRep, VSpaceDimension >.

template<typename TCoordRep, unsigned int VSpaceDimension, typename TImage = Image<double,VSpaceDimension>>
virtual void itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::SetMeanImage ImageType _arg  )  [virtual]
 

Set/Get the mean image.

template<typename TCoordRep, unsigned int VSpaceDimension, typename TImage = Image<double,VSpaceDimension>>
void itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::SetNumberOfPrincipalComponents unsigned int  n  ) 
 

Set/Get the number of principal components SetNumberOfPrincipalComponents must be called before SetParameters

template<typename TCoordRep, unsigned int VSpaceDimension, typename TImage = Image<double,VSpaceDimension>>
virtual void itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::SetParameters const ParametersType  )  [virtual]
 

A PCAShape is defined by a set of shape and pose parameters.

Implements itk::ShapeSignedDistanceFunction< TCoordRep, VSpaceDimension >.

template<typename TCoordRep, unsigned int VSpaceDimension, typename TImage = Image<double,VSpaceDimension>>
void itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::SetPrincipalComponentImages ImagePointerVector  v  )  [inline]
 

Set/Get the principal component images. Definition at line 144 of file itkPCAShapeSignedDistanceFunction.h.

References itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::ParametersType, and itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::TransformType.

template<typename TCoordRep, unsigned int VSpaceDimension, typename TImage = Image<double,VSpaceDimension>>
virtual void itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::SetPrincipalComponentStandardDeviations ParametersType  _arg  )  [virtual]
 

Set/Get the principal component standard deviations. These values corresponds to the square root of the eigenvalues of the principal components.

template<typename TCoordRep, unsigned int VSpaceDimension, typename TImage = Image<double,VSpaceDimension>>
virtual void itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::SetTransform TransformType _arg  )  [virtual]
 

Set/Get transform.


The documentation for this class was generated from the following file:
Generated at Sun Apr 1 03:12:25 2007 for ITK by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2000