18 #ifndef itkShapePriorMAPCostFunction_h
19 #define itkShapePriorMAPCostFunction_h
49 template <
typename TFeatureImage,
typename TOutputPixel>
69 using typename Superclass::ParametersType;
72 using typename Superclass::FeatureImageType;
73 using typename Superclass::FeatureImagePointer;
76 using typename Superclass::MeasureType;
79 static constexpr
unsigned int ImageDimension = TFeatureImage::ImageDimension;
82 using typename Superclass::PixelType;
85 using typename Superclass::NodeType;
88 using typename Superclass::NodeContainerType;
91 using typename Superclass::ShapeFunctionType;
99 itkSetMacro(ShapeParameterMeans,
ArrayType);
100 itkGetConstMacro(ShapeParameterMeans,
ArrayType);
104 itkSetMacro(ShapeParameterStandardDeviations,
ArrayType);
105 itkGetConstMacro(ShapeParameterStandardDeviations,
ArrayType);
123 ComputeLogInsideTerm(
const ParametersType & parameters)
const override;
131 ComputeLogGradientTerm(
const ParametersType & parameters)
const override;
138 ComputeLogShapePriorTerm(
const ParametersType & parameters)
const override;
144 ComputeLogPosePriorTerm(
const ParametersType & parameters)
const override;
149 Initialize()
override;
156 PrintSelf(std::ostream & os,
Indent indent)
const override;
167 #ifndef ITK_MANUAL_INSTANTIATION
168 # include "itkShapePriorMAPCostFunction.hxx"