18 #ifndef itkShapePriorMAPCostFunctionBase_h 19 #define itkShapePriorMAPCostFunctionBase_h 47 template<
typename TFeatureImage,
typename TOutputPixel >
78 itkStaticConstMacro(
ImageDimension,
unsigned int, TFeatureImage::ImageDimension);
101 itkSetConstObjectMacro(ActiveRegion, NodeContainerType);
102 itkGetConstObjectMacro(ActiveRegion, NodeContainerType);
106 itkSetConstObjectMacro(FeatureImage, FeatureImageType);
107 itkGetConstObjectMacro(FeatureImage, FeatureImageType);
112 virtual MeasureType
GetValue(
const ParametersType & parameters)
const ITK_OVERRIDE;
116 virtual void GetDerivative(
const ParametersType &, DerivativeType &) const ITK_OVERRIDE
117 { itkExceptionMacro(<<
"This function is currently not supported."); }
148 virtual void PrintSelf(std::ostream & os,
Indent indent)
const ITK_OVERRIDE;
157 void operator=(const Self &) ITK_DELETE_FUNCTION;
161 #ifndef ITK_MANUAL_INSTANTIATION 162 #include "itkShapePriorMAPCostFunctionBase.hxx" virtual void PrintSelf(std::ostream &os, Indent indent) const override
TFeatureImage FeatureImageType
NodeContainerType::ConstPointer NodeContainerPointer
Superclass::DerivativeType DerivativeType
This class is a base for the CostFunctions returning a single value.
virtual MeasureType GetValue(const ParametersType ¶meters) const override
VectorContainer< unsigned int, NodeType > NodeContainerType
ShapePriorMAPCostFunctionBase()
Superclass::ParametersType ParametersType
virtual MeasureType ComputeLogPosePriorTerm(const ParametersType &) const =0
virtual void Initialize(void)
Superclass::MeasureType MeasureType
SmartPointer< const Self > ConstPointer
virtual MeasureType ComputeLogInsideTerm(const ParametersType &) const =0
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes...
ShapeFunctionType::Pointer ShapeFunctionPointer
Base class for functions which evaluates the signed distance from a shape.
static const unsigned int ImageDimension
virtual MeasureType ComputeLogShapePriorTerm(const ParametersType &) const =0
FeatureImagePointer m_FeatureImage
Array< ParametersValueType > DerivativeType
Represent a node in a level set.
Standard exception handling object.
SmartPointer< Self > Pointer
ShapePriorMAPCostFunctionBase Self
virtual void GetDerivative(const ParametersType &, DerivativeType &) const override
Represents the base class of maximum aprior (MAP) cost function used ShapePriorSegmentationLevelSetIm...
Superclass::ParametersType ParametersType
FeatureImageType::ConstPointer FeatureImagePointer
virtual MeasureType ComputeLogGradientTerm(const ParametersType &) const =0
virtual ~ShapePriorMAPCostFunctionBase()
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