18 #ifndef itkShapePriorSegmentationLevelSetFunction_h
19 #define itkShapePriorSegmentationLevelSetFunction_h
54 template <
typename TImageType,
typename TFeatureImageType = TImageType>
75 using typename Superclass::ImageType;
76 using typename Superclass::NeighborhoodType;
77 using typename Superclass::ScalarValueType;
78 using typename Superclass::FeatureScalarType;
79 using typename Superclass::RadiusType;
80 using typename Superclass::FloatOffsetType;
81 using typename Superclass::VectorImageType;
82 using typename Superclass::PixelType;
83 using typename Superclass::TimeStepType;
85 using typename Superclass::ContinuousIndexType;
88 static constexpr
unsigned int ImageDimension = Superclass::ImageDimension;
98 m_ShapePriorWeight = p;
103 return m_ShapePriorWeight;
112 m_ShapeFunction = ptr;
114 const ShapeFunctionType *
117 return m_ShapeFunction;
123 ComputeUpdate(
const NeighborhoodType & neighborhood,
125 const FloatOffsetType & = FloatOffsetType(0.0))
override;
129 ComputeGlobalTimeStep(
void * gd)
const override;
144 ans->m_MaxAdvectionChange = ScalarValueType{};
145 ans->m_MaxPropagationChange = ScalarValueType{};
146 ans->m_MaxCurvatureChange = ScalarValueType{};
147 ans->m_MaxShapePriorChange = ScalarValueType{};
163 PrintSelf(std::ostream & os,
Indent indent)
const override;
167 ScalarValueType m_ShapePriorWeight{};
171 #ifndef ITK_MANUAL_INSTANTIATION
172 # include "itkShapePriorSegmentationLevelSetFunction.hxx"