![]() |
ITK
4.13.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.
Public Member Functions | |
virtual ::itk::LightObject::Pointer | CreateAnother () const |
virtual OutputType | Evaluate (const PointType &point) const override |
virtual const char * | GetNameOfClass () const |
virtual unsigned int | GetNumberOfPoseParameters (void) const override |
virtual unsigned int | GetNumberOfPrincipalComponents () const |
virtual unsigned int | GetNumberOfShapeParameters (void) const override |
virtual void | Initialize () override |
void | SetNumberOfPrincipalComponents (unsigned int n) |
virtual void | SetParameters (const ParametersType &) override |
virtual void | SetMeanImage (ImageType *_arg) |
virtual ImageType * | GetModifiableMeanImage () |
virtual const ImageType * | GetMeanImage () const |
void | SetPrincipalComponentImages (ImagePointerVector v) |
virtual void | SetPrincipalComponentStandardDeviations (ParametersType _arg) |
virtual ParametersType | GetPrincipalComponentStandardDeviations () const |
virtual void | SetTransform (TransformType *_arg) |
virtual TransformType * | GetModifiableTransform () |
virtual const TransformType * | GetTransform () const |
![]() | |
virtual OutputType | Evaluate (const PointType &point) const override=0 |
virtual unsigned int | GetNumberOfParameters (void) const |
virtual ParametersType & | GetParameters (void) |
![]() | |
virtual OutputType | Evaluate (const InputType &input) const override=0 |
![]() | |
unsigned long | AddObserver (const EventObject &event, Command *) |
unsigned long | AddObserver (const EventObject &event, Command *) const |
virtual void | DebugOff () const |
virtual void | DebugOn () const |
Command * | GetCommand (unsigned long tag) |
bool | GetDebug () const |
MetaDataDictionary & | GetMetaDataDictionary () |
const MetaDataDictionary & | GetMetaDataDictionary () const |
virtual ModifiedTimeType | GetMTime () const |
virtual const TimeStamp & | GetTimeStamp () const |
bool | HasObserver (const EventObject &event) const |
void | InvokeEvent (const EventObject &) |
void | InvokeEvent (const EventObject &) const |
virtual void | Modified () const |
virtual void | Register () const override |
void | RemoveAllObservers () |
void | RemoveObserver (unsigned long tag) |
void | SetDebug (bool debugFlag) const |
void | SetMetaDataDictionary (const MetaDataDictionary &rhs) |
virtual void | SetReferenceCount (int) override |
virtual void | UnRegister () const noexceptoverride |
virtual void | SetObjectName (std::string _arg) |
virtual const std::string & | GetObjectName () const |
![]() | |
virtual void | Delete () |
virtual int | GetReferenceCount () const |
itkCloneMacro (Self) | |
void | Print (std::ostream &os, Indent indent=0) const |
Static Public Member Functions | |
static Pointer | New () |
![]() | |
static bool | GetGlobalWarningDisplay () |
static void | GlobalWarningDisplayOff () |
static void | GlobalWarningDisplayOn () |
static Pointer | New () |
static void | SetGlobalWarningDisplay (bool flag) |
![]() | |
static void | BreakOnError () |
static Pointer | New () |
Static Public Attributes | |
static const unsigned int | SpaceDimension = Superclass::SpaceDimension |
![]() | |
static const unsigned int | SpaceDimension = VSpaceDimension |
![]() | |
static const unsigned int | ImageDimension |
Protected Member Functions | |
PCAShapeSignedDistanceFunction () | |
void | PrintSelf (std::ostream &os, Indent indent) const override |
~PCAShapeSignedDistanceFunction () override | |
![]() | |
void | PrintSelf (std::ostream &os, Indent indent) const override |
ShapeSignedDistanceFunction () | |
~ShapeSignedDistanceFunction () override | |
![]() | |
void | PrintSelf (std::ostream &os, Indent indent) const override |
SpatialFunction () | |
virtual | ~SpatialFunction () override |
![]() | |
FunctionBase () | |
~FunctionBase () override | |
![]() | |
Object () | |
bool | PrintObservers (std::ostream &os, Indent indent) const |
virtual void | SetTimeStamp (const TimeStamp &time) |
virtual | ~Object () override |
![]() | |
virtual LightObject::Pointer | InternalClone () const |
LightObject () | |
virtual void | PrintHeader (std::ostream &os, Indent indent) const |
virtual void | PrintTrailer (std::ostream &os, Indent indent) const |
virtual | ~LightObject () |
Additional Inherited Members | |
![]() | |
ParametersType | m_Parameters |
![]() | |
AtomicInt< int > | m_ReferenceCount |
typedef SmartPointer< const Self > itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::ConstPointer |
Definition at line 78 of file itkPCAShapeSignedDistanceFunction.h.
typedef Superclass::CoordRepType itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::CoordRepType |
CoordRep typedef support.
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.
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.
Definition at line 96 of file itkPCAShapeSignedDistanceFunction.h.
typedef Superclass::ParametersType itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::ParametersType |
Parameters typedef support.
Definition at line 102 of file itkPCAShapeSignedDistanceFunction.h.
typedef SmartPointer< Self > itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::Pointer |
Definition at line 77 of file itkPCAShapeSignedDistanceFunction.h.
typedef Superclass::PointType itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::PointType |
Point typedef support.
Definition at line 99 of file itkPCAShapeSignedDistanceFunction.h.
typedef PCAShapeSignedDistanceFunction itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::Self |
Standard class typedefs.
Definition at line 73 of file itkPCAShapeSignedDistanceFunction.h.
typedef ShapeSignedDistanceFunction< TCoordRep, VSpaceDimension > itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::Superclass |
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.
|
protected |
|
inlineoverrideprotected |
Definition at line 175 of file itkPCAShapeSignedDistanceFunction.h.
|
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.
|
overridevirtual |
Evaluate the signed distance from a shape at a given position.
|
virtual |
Set/Get the mean image.
|
virtual |
Set/Get the mean image.
|
virtual |
Set/Get transform.
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::ShapeSignedDistanceFunction< TCoordRep, VSpaceDimension >.
|
inlineoverridevirtual |
Implements itk::ShapeSignedDistanceFunction< TCoordRep, VSpaceDimension >.
Definition at line 163 of file itkPCAShapeSignedDistanceFunction.h.
|
virtual |
|
inlineoverridevirtual |
Implements itk::ShapeSignedDistanceFunction< TCoordRep, VSpaceDimension >.
Definition at line 161 of file itkPCAShapeSignedDistanceFunction.h.
|
virtual |
Set/Get the principal component standard deviations. These values corresponds to the square root of the eigenvalues of the principal components.
|
virtual |
Set/Get transform.
|
overridevirtual |
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 |
New macro for creation of through the object factory.
|
overrideprotectedvirtual |
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.
|
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
|
overridevirtual |
A PCAShape is defined by a set of shape and pose parameters.
Implements itk::ShapeSignedDistanceFunction< TCoordRep, VSpaceDimension >.
|
inline |
Set/Get the principal component images.
Definition at line 141 of file itkPCAShapeSignedDistanceFunction.h.
|
virtual |
Set/Get the principal component standard deviations. These values corresponds to the square root of the eigenvalues of the principal components.
|
virtual |
Set/Get transform.
|
private |
Definition at line 194 of file itkPCAShapeSignedDistanceFunction.h.
|
private |
Definition at line 193 of file itkPCAShapeSignedDistanceFunction.h.
|
private |
Definition at line 186 of file itkPCAShapeSignedDistanceFunction.h.
|
private |
intrinsic data members
Definition at line 180 of file itkPCAShapeSignedDistanceFunction.h.
|
private |
Definition at line 184 of file itkPCAShapeSignedDistanceFunction.h.
|
private |
Definition at line 187 of file itkPCAShapeSignedDistanceFunction.h.
|
private |
Definition at line 188 of file itkPCAShapeSignedDistanceFunction.h.
|
private |
transform and interpolator/extrapolator for image interpolation
Definition at line 191 of file itkPCAShapeSignedDistanceFunction.h.
|
private |
Definition at line 198 of file itkPCAShapeSignedDistanceFunction.h.
|
private |
shape and pose parameters
Definition at line 197 of file itkPCAShapeSignedDistanceFunction.h.
|
static |
Dimension underlying input image.
Definition at line 87 of file itkPCAShapeSignedDistanceFunction.h.