18#ifndef itkShapePriorMAPCostFunctionBase_h
19#define itkShapePriorMAPCostFunctionBase_h
43template <
typename TFeatureImage,
typename TOutputPixel>
75 static constexpr unsigned int ImageDimension = TFeatureImage::ImageDimension;
116 itkExceptionMacro(
"This function is currently not supported.");
165#ifndef ITK_MANUAL_INSTANTIATION
166# include "itkShapePriorMAPCostFunctionBase.hxx"
Control indentation during Print() invocation.
Represent a node in a level set.
LevelSetNode< PixelType, Self::ImageDimension > NodeType
FeatureImagePointer m_FeatureImage
void PrintSelf(std::ostream &os, Indent indent) const override
unsigned int GetNumberOfParameters() const override
SmartPointer< const Self > ConstPointer
TFeatureImage FeatureImageType
static constexpr unsigned int ImageDimension
virtual MeasureType ComputeLogPosePriorTerm(const ParametersType &) const =0
typename ShapeFunctionType::Pointer ShapeFunctionPointer
Array< ParametersValueType > DerivativeType
typename NodeContainerType::ConstPointer NodeContainerPointer
ShapeSignedDistanceFunction< double, Self::ImageDimension > ShapeFunctionType
void GetDerivative(const ParametersType &, DerivativeType &) const override
VectorContainer< unsigned int, NodeType > NodeContainerType
ShapeFunctionPointer m_ShapeFunction
~ShapePriorMAPCostFunctionBase() override=default
typename FeatureImageType::ConstPointer FeatureImagePointer
virtual MeasureType ComputeLogInsideTerm(const ParametersType &) const =0
SmartPointer< Self > Pointer
MeasureType GetValue(const ParametersType ¶meters) const override
Superclass::ParametersType ParametersType
SingleValuedCostFunction Superclass
NodeContainerPointer m_ActiveRegion
virtual MeasureType ComputeLogShapePriorTerm(const ParametersType &) const =0
virtual void Initialize()
virtual MeasureType ComputeLogGradientTerm(const ParametersType &) const =0
ShapePriorMAPCostFunctionBase()
ShapePriorMAPCostFunctionBase Self
Base class for functions which evaluates the signed distance from a shape.
SmartPointer< Self > Pointer
Array< ParametersValueType > DerivativeType
SingleValuedCostFunction()=default
Superclass::ParametersType ParametersType
Implements transparent reference counting.
SmartPointer< const Self > ConstPointer
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
detail::VectorContainer< std::conditional_t< std::is_void_v< T2 >, SizeValueType, T1 >, std::conditional_t< std::is_void_v< T2 >, T1, T2 > > VectorContainer