ITK
6.0.0
Insight 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 \( 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 \(\sigma[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.
Definition at line 67 of file itkPCAShapeSignedDistanceFunction.h.
Public Member Functions | |
OutputType | Evaluate (const PointType &point) const override |
const char * | GetNameOfClass () const override |
unsigned int | GetNumberOfPoseParameters () const override |
virtual unsigned int | GetNumberOfPrincipalComponents () const |
unsigned int | GetNumberOfShapeParameters () const override |
void | Initialize () override |
void | SetNumberOfPrincipalComponents (unsigned int n) |
void | SetParameters (const ParametersType &) override |
virtual void | SetMeanImage (ImageType *_arg) |
virtual ImageType * | GetModifiableMeanImage () |
void | SetPrincipalComponentImages (ImagePointerVector v) |
virtual void | SetPrincipalComponentStandardDeviations (ParametersType _arg) |
virtual ParametersType | GetPrincipalComponentStandardDeviations () const |
virtual void | SetTransform (TransformType *_arg) |
virtual TransformType * | GetModifiableTransform () |
Public Member Functions inherited from itk::ShapeSignedDistanceFunction< TCoordRep, VSpaceDimension > | |
OutputType | Evaluate (const PointType &point) const override=0 |
const char * | GetNameOfClass () const override |
virtual unsigned int | GetNumberOfParameters () const |
virtual unsigned int | GetNumberOfPoseParameters () const =0 |
virtual unsigned int | GetNumberOfShapeParameters () const =0 |
virtual ParametersType & | GetParameters () |
virtual void | Initialize () |
virtual void | SetParameters (const ParametersType &)=0 |
Public Member Functions inherited from itk::SpatialFunction< double, VSpaceDimension, Point< TCoordRep, VSpaceDimension > > | |
OutputType | Evaluate (const InputType &input) const override=0 |
const char * | GetNameOfClass () const override |
virtual OutputType | Evaluate (const InputType &input) const=0 |
const char * | GetNameOfClass () const override |
Public Member Functions inherited from itk::Object | |
unsigned long | AddObserver (const EventObject &event, Command *cmd) const |
unsigned long | AddObserver (const EventObject &event, std::function< void(const EventObject &)> function) const |
LightObject::Pointer | CreateAnother () const override |
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 |
const char * | GetNameOfClass () const override |
virtual const TimeStamp & | GetTimeStamp () const |
bool | HasObserver (const EventObject &event) const |
void | InvokeEvent (const EventObject &) |
void | InvokeEvent (const EventObject &) const |
virtual void | Modified () const |
void | Register () const override |
void | RemoveAllObservers () |
void | RemoveObserver (unsigned long tag) const |
void | SetDebug (bool debugFlag) const |
void | SetReferenceCount (int) override |
void | UnRegister () const noexcept override |
void | SetMetaDataDictionary (const MetaDataDictionary &rhs) |
void | SetMetaDataDictionary (MetaDataDictionary &&rrhs) |
virtual void | SetObjectName (std::string _arg) |
virtual const std::string & | GetObjectName () const |
Public Member Functions inherited from itk::LightObject | |
Pointer | Clone () const |
virtual Pointer | CreateAnother () const |
virtual void | Delete () |
virtual const char * | GetNameOfClass () const |
virtual int | GetReferenceCount () const |
void | Print (std::ostream &os, Indent indent=0) const |
virtual void | Register () const |
virtual void | SetReferenceCount (int) |
virtual void | UnRegister () const noexcept |
Static Public Member Functions | |
static Pointer | New () |
Static Public Member Functions inherited from itk::Object | |
static bool | GetGlobalWarningDisplay () |
static void | GlobalWarningDisplayOff () |
static void | GlobalWarningDisplayOn () |
static Pointer | New () |
static void | SetGlobalWarningDisplay (bool val) |
Static Public Member Functions inherited from itk::LightObject | |
static void | BreakOnError () |
static Pointer | New () |
Static Public Attributes | |
static constexpr unsigned int | SpaceDimension = Superclass::SpaceDimension |
Static Public Attributes inherited from itk::ShapeSignedDistanceFunction< TCoordRep, VSpaceDimension > | |
static constexpr unsigned int | SpaceDimension = VSpaceDimension |
Static Public Attributes inherited from itk::SpatialFunction< double, VSpaceDimension, Point< TCoordRep, VSpaceDimension > > | |
static constexpr unsigned int | ImageDimension |
Protected Member Functions | |
PCAShapeSignedDistanceFunction () | |
void | PrintSelf (std::ostream &os, Indent indent) const override |
~PCAShapeSignedDistanceFunction () override=default | |
Protected Member Functions inherited from itk::ShapeSignedDistanceFunction< TCoordRep, VSpaceDimension > | |
void | PrintSelf (std::ostream &os, Indent indent) const override |
ShapeSignedDistanceFunction ()=default | |
~ShapeSignedDistanceFunction () override=default | |
Protected Member Functions inherited from itk::SpatialFunction< double, VSpaceDimension, Point< TCoordRep, VSpaceDimension > > | |
void | PrintSelf (std::ostream &os, Indent indent) const override |
SpatialFunction ()=default | |
~SpatialFunction () override=default | |
Protected Member Functions inherited from itk::FunctionBase< Point< TCoordRep, VSpaceDimension >, double > | |
FunctionBase ()=default | |
~FunctionBase () override=default | |
Protected Member Functions inherited from itk::Object | |
Object () | |
bool | PrintObservers (std::ostream &os, Indent indent) const |
void | PrintSelf (std::ostream &os, Indent indent) const override |
virtual void | SetTimeStamp (const TimeStamp &timeStamp) |
~Object () override | |
Protected Member Functions inherited from itk::LightObject | |
virtual LightObject::Pointer | InternalClone () const |
LightObject () | |
virtual void | PrintHeader (std::ostream &os, Indent indent) const |
virtual void | PrintSelf (std::ostream &os, Indent indent) const |
virtual void | PrintTrailer (std::ostream &os, Indent indent) const |
virtual | ~LightObject () |
Private Attributes | |
ExtrapolatorPointerVector | m_Extrapolators {} |
InterpolatorPointerVector | m_Interpolators {} |
ImagePointer | m_MeanImage {} |
unsigned int | m_NumberOfPrincipalComponents {} |
unsigned int | m_NumberOfTransformParameters {} |
ImagePointerVector | m_PrincipalComponentImages {} |
ParametersType | m_PrincipalComponentStandardDeviations {} |
TransformType::Pointer | m_Transform {} |
ParametersType | m_TransformParameters {} |
ParametersType | m_WeightOfPrincipalComponents {} |
Additional Inherited Members | |
Protected Attributes inherited from itk::ShapeSignedDistanceFunction< TCoordRep, VSpaceDimension > | |
ParametersType | m_Parameters {} |
Protected Attributes inherited from itk::LightObject | |
std::atomic< int > | m_ReferenceCount {} |
using itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::ConstPointer = SmartPointer<const Self> |
Definition at line 78 of file itkPCAShapeSignedDistanceFunction.h.
using itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::ExtrapolatorPointer = typename ExtrapolatorType::Pointer |
Definition at line 119 of file itkPCAShapeSignedDistanceFunction.h.
using itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::ExtrapolatorPointerVector = std::vector<ExtrapolatorPointer> |
Definition at line 120 of file itkPCAShapeSignedDistanceFunction.h.
using itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::ExtrapolatorType = ExtrapolateImageFunction<ImageType, CoordRepType> |
extrapolator type alias support
Definition at line 118 of file itkPCAShapeSignedDistanceFunction.h.
using itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::FunctionPointer = typename FunctionType::Pointer |
Definition at line 124 of file itkPCAShapeSignedDistanceFunction.h.
using itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::FunctionPointerVector = std::vector<FunctionPointer> |
Definition at line 125 of file itkPCAShapeSignedDistanceFunction.h.
using itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::FunctionType = ImageFunction<ImageType, double, CoordRepType> |
function type alias support
Definition at line 123 of file itkPCAShapeSignedDistanceFunction.h.
using itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::ImagePointer = typename ImageType::Pointer |
Definition at line 106 of file itkPCAShapeSignedDistanceFunction.h.
using itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::ImagePointerVector = std::vector<ImagePointer> |
Definition at line 107 of file itkPCAShapeSignedDistanceFunction.h.
using itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::ImageType = TImage |
Image type alias support
Definition at line 105 of file itkPCAShapeSignedDistanceFunction.h.
using itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::InterpolatorPointer = typename InterpolatorType::Pointer |
Definition at line 114 of file itkPCAShapeSignedDistanceFunction.h.
using itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::InterpolatorPointerVector = std::vector<InterpolatorPointer> |
Definition at line 115 of file itkPCAShapeSignedDistanceFunction.h.
using itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::InterpolatorType = InterpolateImageFunction<ImageType, CoordRepType> |
Interpolator type alias support
Definition at line 113 of file itkPCAShapeSignedDistanceFunction.h.
using itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::Pointer = SmartPointer<Self> |
Definition at line 77 of file itkPCAShapeSignedDistanceFunction.h.
using itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::Self = PCAShapeSignedDistanceFunction |
Standard class type aliases.
Definition at line 74 of file itkPCAShapeSignedDistanceFunction.h.
using itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::Superclass = ShapeSignedDistanceFunction<TCoordRep, VSpaceDimension> |
Definition at line 75 of file itkPCAShapeSignedDistanceFunction.h.
using itk::PCAShapeSignedDistanceFunction< TCoordRep, VSpaceDimension, TImage >::TransformType = Transform<CoordRepType, Self::SpaceDimension, Self::SpaceDimension> |
Transform type alias support
Definition at line 110 of file itkPCAShapeSignedDistanceFunction.h.
|
protected |
|
overrideprotecteddefault |
|
overridevirtual |
Evaluate the signed distance from a shape at a given position.
Implements itk::ShapeSignedDistanceFunction< TCoordRep, VSpaceDimension >.
|
virtual |
Set/Get the mean image.
|
virtual |
Set/Get transform.
|
overridevirtual |
Reimplemented from itk::Object.
|
inlineoverridevirtual |
Implements itk::ShapeSignedDistanceFunction< TCoordRep, VSpaceDimension >.
Definition at line 170 of file itkPCAShapeSignedDistanceFunction.h.
|
virtual |
|
inlineoverridevirtual |
Implements itk::ShapeSignedDistanceFunction< TCoordRep, VSpaceDimension >.
Definition at line 165 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.
|
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 204 of file itkPCAShapeSignedDistanceFunction.h.
|
private |
Definition at line 203 of file itkPCAShapeSignedDistanceFunction.h.
|
private |
Definition at line 196 of file itkPCAShapeSignedDistanceFunction.h.
|
private |
intrinsic data members
Definition at line 193 of file itkPCAShapeSignedDistanceFunction.h.
|
private |
Definition at line 194 of file itkPCAShapeSignedDistanceFunction.h.
|
private |
Definition at line 197 of file itkPCAShapeSignedDistanceFunction.h.
|
private |
Definition at line 198 of file itkPCAShapeSignedDistanceFunction.h.
|
private |
transform and interpolator/extrapolator for image interpolation
Definition at line 201 of file itkPCAShapeSignedDistanceFunction.h.
|
private |
Definition at line 208 of file itkPCAShapeSignedDistanceFunction.h.
|
private |
shape and pose parameters
Definition at line 207 of file itkPCAShapeSignedDistanceFunction.h.
|
staticconstexpr |
Dimension underlying input image.
Definition at line 87 of file itkPCAShapeSignedDistanceFunction.h.