18 #ifndef __itkShapePriorMAPCostFunctionBase_h
19 #define __itkShapePriorMAPCostFunctionBase_h
47 template<
class TFeatureImage,
class TOutputPixel >
63 typedef typename Superclass::MeasureType
MeasureType;
78 itkStaticConstMacro(ImageDimension,
unsigned int, TFeatureImage::ImageDimension);
117 { itkExceptionMacro(<<
"This function is currently not supported."); }
120 virtual unsigned int GetNumberOfParameters(
void)
const
121 {
return m_ShapeFunction->GetNumberOfParameters(); }
125 virtual MeasureType ComputeLogInsideTerm(
const ParametersType &)
const = 0;
129 virtual MeasureType ComputeLogGradientTerm(
const ParametersType &)
const = 0;
133 virtual MeasureType ComputeLogShapePriorTerm(
const ParametersType &)
const = 0;
137 virtual MeasureType ComputeLogPosePriorTerm(
const ParametersType &)
const = 0;
141 virtual void Initialize(
void)
146 virtual ~ShapePriorMAPCostFunctionBase() {}
148 void PrintSelf(std::ostream & os,
Indent indent)
const;
156 void operator=(
const Self &);
160 #ifndef ITK_MANUAL_INSTANTIATION
161 #include "itkShapePriorMAPCostFunctionBase.hxx"