18 #ifndef itkShapePriorMAPCostFunctionBase_h
19 #define itkShapePriorMAPCostFunctionBase_h
47 template<
typename TFeatureImage,
typename TOutputPixel >
80 static constexpr
unsigned int ImageDimension = TFeatureImage::ImageDimension;
94 Self::ImageDimension >;
119 { itkExceptionMacro(<<
"This function is currently not supported."); }
123 {
return m_ShapeFunction->GetNumberOfParameters(); }
127 virtual MeasureType ComputeLogInsideTerm(
const ParametersType &)
const = 0;
131 virtual MeasureType ComputeLogGradientTerm(
const ParametersType &)
const = 0;
135 virtual MeasureType ComputeLogShapePriorTerm(
const ParametersType &)
const = 0;
139 virtual MeasureType ComputeLogPosePriorTerm(
const ParametersType &)
const = 0;
143 virtual void Initialize();
149 void PrintSelf(std::ostream & os,
Indent indent)
const override;
158 #ifndef ITK_MANUAL_INSTANTIATION
159 #include "itkShapePriorMAPCostFunctionBase.hxx"
Array class with size defined at construction time.
This class is a base for the CostFunctions returning a single value.
Light weight base class for most itk classes.
Base class for functions which evaluates the signed distance from a shape.
FeatureImagePointer m_FeatureImage
typename FeatureImageType::ConstPointer FeatureImagePointer
Represent a node in a level set.
TFeatureImage FeatureImageType
unsigned int GetNumberOfParameters() const override
Represents the base class of maximum aprior (MAP) cost function used ShapePriorSegmentationLevelSetIm...
Define a front-end to the STL "vector" container that conforms to the IndexedContainerInterface.
ShapeFunctionPointer m_ShapeFunction
Control indentation during Print() invocation.
typename NodeContainerType::ConstPointer NodeContainerPointer
typename ShapeFunctionType::Pointer ShapeFunctionPointer
void GetDerivative(const ParametersType &, DerivativeType &) const override
NodeContainerPointer m_ActiveRegion