18 #ifndef itkShapePriorMAPCostFunctionBase_h
19 #define itkShapePriorMAPCostFunctionBase_h
47 template<
typename TFeatureImage,
typename TOutputPixel >
63 typedef typename Superclass::MeasureType
MeasureType;
78 itkStaticConstMacro(ImageDimension,
unsigned int, TFeatureImage::ImageDimension);
117 { itkExceptionMacro(<<
"This function is currently not supported."); }
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);
147 virtual void PrintSelf(std::ostream & os,
Indent indent)
const ITK_OVERRIDE;
159 #ifndef ITK_MANUAL_INSTANTIATION
160 #include "itkShapePriorMAPCostFunctionBase.hxx"
Array class with size defined at construction time.
TFeatureImage FeatureImageType
virtual ~ShapePriorMAPCostFunctionBase() override
NodeContainerType::ConstPointer NodeContainerPointer
Superclass::DerivativeType DerivativeType
This class is a base for the CostFunctions returning a single value.
VectorContainer< unsigned int, NodeType > NodeContainerType
Superclass::ParametersType ParametersType
Superclass::MeasureType MeasureType
SmartPointer< const Self > ConstPointer
ShapeFunctionType::Pointer ShapeFunctionPointer
Base class for functions which evaluates the signed distance from a shape.
FeatureImagePointer m_FeatureImage
Represent a node in a level set.
SmartPointer< Self > Pointer
ShapePriorMAPCostFunctionBase Self
Represents the base class of maximum aprior (MAP) cost function used ShapePriorSegmentationLevelSetIm...
FeatureImageType::ConstPointer FeatureImagePointer
virtual void GetDerivative(const ParametersType &, DerivativeType &) const override
virtual unsigned int GetNumberOfParameters(void) const override
Define a front-end to the STL "vector" container that conforms to the IndexedContainerInterface.
ShapeFunctionPointer m_ShapeFunction
Control indentation during Print() invocation.
SingleValuedCostFunction Superclass
LevelSetNode< PixelType, itkGetStaticConstMacro(ImageDimension) > NodeType
NodeContainerPointer m_ActiveRegion
ShapeSignedDistanceFunction< double, itkGetStaticConstMacro(ImageDimension) > ShapeFunctionType