18 #ifndef itkPCAShapeSignedDistanceFunction_h
19 #define itkPCAShapeSignedDistanceFunction_h
65 template<
typename TCoordRep,
66 unsigned int VSpaceDimension,
67 typename TImage = Image< double, VSpaceDimension > >
77 TCoordRep, VSpaceDimension >;
89 static constexpr
unsigned int SpaceDimension = Superclass::SpaceDimension;
113 Self::SpaceDimension,
114 Self::SpaceDimension >;
133 void SetNumberOfPrincipalComponents(
unsigned int n);
135 itkGetConstMacro(NumberOfPrincipalComponents,
unsigned int);
139 itkGetModifiableObjectMacro(MeanImage,
ImageType);
144 { m_PrincipalComponentImages = v; }
151 itkSetMacro(PrincipalComponentStandardDeviations, ParametersType);
152 itkGetConstMacro(PrincipalComponentStandardDeviations, ParametersType);
156 itkSetObjectMacro(
Transform, TransformType);
157 itkGetModifiableObjectMacro(
Transform, TransformType);
161 void SetParameters(
const ParametersType &)
override;
164 {
return m_NumberOfPrincipalComponents; }
166 {
return m_Transform ? m_Transform->GetNumberOfParameters() : 0; }
169 OutputType Evaluate(
const PointType & point)
const override;
173 void Initialize()
override;
179 void PrintSelf(std::ostream & os,
Indent indent)
const override;
202 #ifndef ITK_MANUAL_INSTANTIATION
203 #include "itkPCAShapeSignedDistanceFunction.hxx"
typename Superclass::InputType InputType
typename Superclass::OutputType OutputType
Light weight base class for most itk classes.
ParametersType m_WeightOfPrincipalComponents
unsigned int GetNumberOfShapeParameters() const override
unsigned int m_NumberOfTransformParameters
Compute the signed distance from a N-dimensional PCA Shape.
typename ExtrapolatorType::Pointer ExtrapolatorPointer
ImagePointerVector m_PrincipalComponentImages
Base class for functions which evaluates the signed distance from a shape.
std::vector< FunctionPointer > FunctionPointerVector
typename Superclass::CoordRepType CoordRepType
typename Superclass::ParametersType ParametersType
typename ImageType::Pointer ImagePointer
std::vector< ExtrapolatorPointer > ExtrapolatorPointerVector
std::vector< ImagePointer > ImagePointerVector
unsigned int m_NumberOfPrincipalComponents
ParametersType m_TransformParameters
typename FunctionType::Pointer FunctionPointer
ExtrapolatorPointerVector m_Extrapolators
Base class for all image interpolaters.
InterpolatorPointerVector m_Interpolators
Control indentation during Print() invocation.
ImageBaseType::PointType PointType
typename InterpolatorType::Pointer InterpolatorPointer
typename Superclass::PointType PointType
TransformType::Pointer m_Transform
unsigned int GetNumberOfPoseParameters() const override
Evaluates a function of an image at specified position.
void SetPrincipalComponentImages(ImagePointerVector v)
ParametersType m_PrincipalComponentStandardDeviations
std::vector< InterpolatorPointer > InterpolatorPointerVector