18#ifndef itkShapePriorMAPCostFunctionBase_h
19#define itkShapePriorMAPCostFunctionBase_h
47template <
typename TFeatureImage,
typename TOutputPixel>
64 using typename Superclass::MeasureType;
68 using typename Superclass::DerivativeType;
72 using typename Superclass::ParametersType;
79 static constexpr unsigned int ImageDimension = TFeatureImage::ImageDimension;
120 itkExceptionMacro(
"This function is currently not supported.");
127 return m_ShapeFunction->GetNumberOfParameters();
169#ifndef ITK_MANUAL_INSTANTIATION
170# include "itkShapePriorMAPCostFunctionBase.hxx"
Array class with size defined at construction time.
Control indentation during Print() invocation.
Represent a node in a level set.
Light weight base class for most itk classes.
Represents the base class of maximum aprior (MAP) cost function used ShapePriorSegmentationLevelSetIm...
void PrintSelf(std::ostream &os, Indent indent) const override
unsigned int GetNumberOfParameters() const override
TFeatureImage FeatureImageType
virtual MeasureType ComputeLogPosePriorTerm(const ParametersType &) const =0
typename ShapeFunctionType::Pointer ShapeFunctionPointer
typename NodeContainerType::ConstPointer NodeContainerPointer
void GetDerivative(const ParametersType &, DerivativeType &) const override
~ShapePriorMAPCostFunctionBase() override=default
typename FeatureImageType::ConstPointer FeatureImagePointer
virtual MeasureType ComputeLogInsideTerm(const ParametersType &) const =0
MeasureType GetValue(const ParametersType ¶meters) const override
virtual MeasureType ComputeLogShapePriorTerm(const ParametersType &) const =0
virtual void Initialize()
virtual MeasureType ComputeLogGradientTerm(const ParametersType &) const =0
ShapePriorMAPCostFunctionBase()
Base class for functions which evaluates the signed distance from a shape.
This class is a base for the CostFunctions returning a single value.
Superclass::ParametersType ParametersType
Define a front-end to the STL "vector" container that conforms to the IndexedContainerInterface.
SmartPointer< const Self > ConstPointer
SmartPointer< Self > Pointer
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....