ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
#include <itkPCAShapeSignedDistanceFunction.h>
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 , (2) the first principal components images and (3) a transform 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 . The first 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:
Where 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.
Definition at line 68 of file itkPCAShapeSignedDistanceFunction.h.
typedef SmartPointer< const Self > itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::ConstPointer |
Reimplemented from itk::ShapeSignedDistanceFunction< TCoordRep, VSpaceDimension >.
Definition at line 78 of file itkPCAShapeSignedDistanceFunction.h.
typedef Superclass::CoordRepType itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::CoordRepType |
CoordRep typedef support.
Reimplemented from itk::ShapeSignedDistanceFunction< TCoordRep, VSpaceDimension >.
Definition at line 90 of file itkPCAShapeSignedDistanceFunction.h.
typedef ExtrapolatorType::Pointer itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::ExtrapolatorPointer |
Definition at line 121 of file itkPCAShapeSignedDistanceFunction.h.
typedef std::vector< ExtrapolatorPointer > itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::ExtrapolatorPointerVector |
Definition at line 122 of file itkPCAShapeSignedDistanceFunction.h.
typedef ExtrapolateImageFunction< ImageType, CoordRepType > itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::ExtrapolatorType |
extrapolator typedef support.
Definition at line 120 of file itkPCAShapeSignedDistanceFunction.h.
typedef FunctionType::Pointer itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::FunctionPointer |
Definition at line 126 of file itkPCAShapeSignedDistanceFunction.h.
typedef std::vector< FunctionPointer > itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::FunctionPointerVector |
Definition at line 127 of file itkPCAShapeSignedDistanceFunction.h.
typedef ImageFunction< ImageType, double, CoordRepType > itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::FunctionType |
function typedef support.
Definition at line 125 of file itkPCAShapeSignedDistanceFunction.h.
typedef ImageType::Pointer itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::ImagePointer |
Definition at line 106 of file itkPCAShapeSignedDistanceFunction.h.
typedef std::vector< ImagePointer > itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::ImagePointerVector |
Definition at line 107 of file itkPCAShapeSignedDistanceFunction.h.
typedef TImage itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::ImageType |
Image typedef support.
Definition at line 105 of file itkPCAShapeSignedDistanceFunction.h.
typedef Superclass::InputType itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::InputType |
InputeType typedef support.
Reimplemented from itk::ShapeSignedDistanceFunction< TCoordRep, VSpaceDimension >.
Definition at line 93 of file itkPCAShapeSignedDistanceFunction.h.
typedef InterpolatorType::Pointer itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::InterpolatorPointer |
Definition at line 116 of file itkPCAShapeSignedDistanceFunction.h.
typedef std::vector< InterpolatorPointer > itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::InterpolatorPointerVector |
Definition at line 117 of file itkPCAShapeSignedDistanceFunction.h.
typedef InterpolateImageFunction< ImageType, CoordRepType > itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::InterpolatorType |
Interpolator typedef support.
Definition at line 115 of file itkPCAShapeSignedDistanceFunction.h.
typedef Superclass::OutputType itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::OutputType |
OutputType typedef support.
Reimplemented from itk::ShapeSignedDistanceFunction< TCoordRep, VSpaceDimension >.
Definition at line 96 of file itkPCAShapeSignedDistanceFunction.h.
typedef Superclass::ParametersType itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::ParametersType |
Parameters typedef support.
Reimplemented from itk::ShapeSignedDistanceFunction< TCoordRep, VSpaceDimension >.
Definition at line 102 of file itkPCAShapeSignedDistanceFunction.h.
typedef SmartPointer< Self > itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::Pointer |
Reimplemented from itk::ShapeSignedDistanceFunction< TCoordRep, VSpaceDimension >.
Definition at line 77 of file itkPCAShapeSignedDistanceFunction.h.
typedef Superclass::PointType itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::PointType |
Point typedef support.
Reimplemented from itk::ShapeSignedDistanceFunction< TCoordRep, VSpaceDimension >.
Definition at line 99 of file itkPCAShapeSignedDistanceFunction.h.
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.
typedef ShapeSignedDistanceFunction< TCoordRep, VSpaceDimension > itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::Superclass |
Reimplemented from itk::ShapeSignedDistanceFunction< TCoordRep, VSpaceDimension >.
Definition at line 75 of file itkPCAShapeSignedDistanceFunction.h.
typedef Transform< CoordRepType, itkGetStaticConstMacro(SpaceDimension), itkGetStaticConstMacro(SpaceDimension) > itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::TransformType |
Transform typedef support.
Definition at line 112 of file itkPCAShapeSignedDistanceFunction.h.
itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::PCAShapeSignedDistanceFunction | ( | ) | [protected] |
itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::~PCAShapeSignedDistanceFunction | ( | ) | [inline, protected] |
Definition at line 176 of file itkPCAShapeSignedDistanceFunction.h.
itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::PCAShapeSignedDistanceFunction | ( | const Self & | ) | [private] |
virtual::itk::LightObject::Pointer itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::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.
virtual OutputType itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::Evaluate | ( | const PointType & | point | ) | const [virtual] |
Evaluate the signed distance from a shape at a given position.
virtual ImageType* itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::GetMeanImage | ( | ) | [virtual] |
Set/Get the mean image.
virtual const char* itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::GetNameOfClass | ( | ) | const [virtual] |
Run-time type information (and related methods).
Reimplemented from itk::ShapeSignedDistanceFunction< TCoordRep, VSpaceDimension >.
virtual unsigned int itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::GetNumberOfPoseParameters | ( | void | ) | const [inline, virtual] |
Implements itk::ShapeSignedDistanceFunction< TCoordRep, VSpaceDimension >.
Definition at line 163 of file itkPCAShapeSignedDistanceFunction.h.
virtual unsigned int itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::GetNumberOfPrincipalComponents | ( | ) | const [virtual] |
virtual unsigned int itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::GetNumberOfShapeParameters | ( | void | ) | const [inline, virtual] |
Implements itk::ShapeSignedDistanceFunction< TCoordRep, VSpaceDimension >.
Definition at line 161 of file itkPCAShapeSignedDistanceFunction.h.
virtual ParametersType itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::GetPrincipalComponentStandardDeviations | ( | ) | const [virtual] |
Set/Get the principal component standard deviations. These values corresponds to the square root of the eigenvalues of the principal components.
virtual TransformType* itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::GetTransform | ( | ) | [virtual] |
Set/Get transform.
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 >.
static Pointer itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::New | ( | ) | [static] |
New macro for creation of through the object factory.
Reimplemented from itk::Object.
void itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::operator= | ( | const Self & | ) | [private] |
Mutex lock to protect modification to the reference count
Reimplemented from itk::ShapeSignedDistanceFunction< TCoordRep, 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 >.
virtual void itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::SetMeanImage | ( | ImageType * | _arg | ) | [virtual] |
Set/Get the mean image.
void itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::SetNumberOfPrincipalComponents | ( | unsigned int | n | ) |
Set/Get the number of principal components SetNumberOfPrincipalComponents must be called before SetParameters
virtual void itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::SetParameters | ( | const ParametersType & | ) | [virtual] |
A PCAShape is defined by a set of shape and pose parameters.
void itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::SetPrincipalComponentImages | ( | ImagePointerVector | v | ) | [inline] |
Set/Get the principal component images.
Definition at line 141 of file itkPCAShapeSignedDistanceFunction.h.
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.
virtual void itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::SetTransform | ( | TransformType * | _arg | ) | [virtual] |
Set/Get transform.
ExtrapolatorPointerVector itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::m_Extrapolators [private] |
Definition at line 196 of file itkPCAShapeSignedDistanceFunction.h.
InterpolatorPointerVector itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::m_Interpolators [private] |
Definition at line 195 of file itkPCAShapeSignedDistanceFunction.h.
ImagePointer itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::m_MeanImage [private] |
Definition at line 188 of file itkPCAShapeSignedDistanceFunction.h.
unsigned int itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::m_NumberOfPrincipalComponents [private] |
intrinsic data members
Definition at line 185 of file itkPCAShapeSignedDistanceFunction.h.
unsigned int itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::m_NumberOfTransformParameters [private] |
Definition at line 186 of file itkPCAShapeSignedDistanceFunction.h.
ImagePointerVector itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::m_PrincipalComponentImages [private] |
Definition at line 189 of file itkPCAShapeSignedDistanceFunction.h.
ParametersType itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::m_PrincipalComponentStandardDeviations [private] |
Definition at line 190 of file itkPCAShapeSignedDistanceFunction.h.
FunctionPointerVector itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::m_Selectors [mutable, private] |
Definition at line 197 of file itkPCAShapeSignedDistanceFunction.h.
TransformType::Pointer itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::m_Transform [private] |
transform and interpolator/extrapolator for image interpolation
Definition at line 193 of file itkPCAShapeSignedDistanceFunction.h.
ParametersType itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::m_TransformParameters [private] |
Definition at line 201 of file itkPCAShapeSignedDistanceFunction.h.
ParametersType itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::m_WeightOfPrincipalComponents [private] |
shape and pose parameters
Definition at line 200 of file itkPCAShapeSignedDistanceFunction.h.
const unsigned int itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::SpaceDimension = Superclass::SpaceDimension [static] |
Dimension underlying input image.
Reimplemented from itk::ShapeSignedDistanceFunction< TCoordRep, VSpaceDimension >.
Definition at line 87 of file itkPCAShapeSignedDistanceFunction.h.