18 #ifndef itkPCAShapeSignedDistanceFunction_h
19 #define itkPCAShapeSignedDistanceFunction_h
65 template<
typename TCoordRep,
66 unsigned int VSpaceDimension,
67 typename TImage = Image< double, VSpaceDimension > >
87 itkStaticConstMacro(SpaceDimension,
unsigned int, Superclass::SpaceDimension);
111 itkGetStaticConstMacro(SpaceDimension),
131 void SetNumberOfPrincipalComponents(
unsigned int n);
133 itkGetConstMacro(NumberOfPrincipalComponents,
unsigned int);
137 itkGetModifiableObjectMacro(MeanImage,
ImageType);
142 { m_PrincipalComponentImages = v; }
149 itkSetMacro(PrincipalComponentStandardDeviations, ParametersType);
150 itkGetConstMacro(PrincipalComponentStandardDeviations, ParametersType);
154 itkSetObjectMacro(
Transform, TransformType);
155 itkGetModifiableObjectMacro(
Transform, TransformType);
159 virtual void SetParameters(
const ParametersType &) ITK_OVERRIDE;
161 virtual
unsigned int GetNumberOfShapeParameters(
void) const ITK_OVERRIDE
162 {
return m_NumberOfPrincipalComponents; }
164 {
return m_Transform ? m_Transform->GetNumberOfParameters() : 0; }
167 virtual OutputType Evaluate(
const PointType & point)
const ITK_OVERRIDE;
171 virtual void Initialize() ITK_OVERRIDE;
175 ~PCAShapeSignedDistanceFunction() ITK_OVERRIDE {}
177 void PrintSelf(std::ostream & os,
Indent indent)
const ITK_OVERRIDE;
202 #ifndef ITK_MANUAL_INSTANTIATION
203 #include "itkPCAShapeSignedDistanceFunction.hxx"
ShapeSignedDistanceFunction< TCoordRep, VSpaceDimension > Superclass
SmartPointer< Self > Pointer
Superclass::CoordRepType CoordRepType
Light weight base class for most itk classes.
ParametersType m_WeightOfPrincipalComponents
std::vector< FunctionPointer > FunctionPointerVector
InterpolateImageFunction< ImageType, CoordRepType > InterpolatorType
ExtrapolatorType::Pointer ExtrapolatorPointer
FunctionType::Pointer FunctionPointer
unsigned int m_NumberOfTransformParameters
Superclass::OutputType OutputType
InterpolatorType::Pointer InterpolatorPointer
Compute the signed distance from a N-dimensional PCA Shape.
ImagePointerVector m_PrincipalComponentImages
Superclass::PointType PointType
Base class for functions which evaluates the signed distance from a shape.
ImageFunction< ImageType, double, CoordRepType > FunctionType
Transform< CoordRepType, itkGetStaticConstMacro(SpaceDimension), itkGetStaticConstMacro(SpaceDimension) > TransformType
ImageType::Pointer ImagePointer
std::vector< InterpolatorPointer > InterpolatorPointerVector
ImageBaseType::PointType PointType
Superclass::InputType InputType
PCAShapeSignedDistanceFunction Self
unsigned int m_NumberOfPrincipalComponents
virtual unsigned int GetNumberOfPoseParameters(void) const override
ParametersType m_TransformParameters
ExtrapolateImageFunction< ImageType, CoordRepType > ExtrapolatorType
ExtrapolatorPointerVector m_Extrapolators
Base class for all image interpolaters.
Superclass::ParametersType ParametersType
InterpolatorPointerVector m_Interpolators
std::vector< ExtrapolatorPointer > ExtrapolatorPointerVector
Control indentation during Print() invocation.
SmartPointer< const Self > ConstPointer
std::vector< ImagePointer > ImagePointerVector
TransformType::Pointer m_Transform
Evaluates a function of an image at specified position.
void SetPrincipalComponentImages(ImagePointerVector v)
ParametersType m_PrincipalComponentStandardDeviations