18 #ifndef itkThresholdSegmentationLevelSetFunction_h
19 #define itkThresholdSegmentationLevelSetFunction_h
56 template <
typename TImageType,
typename TFeatureImageType = TImageType>
77 using typename Superclass::ImageType;
78 using typename Superclass::ScalarValueType;
79 using typename Superclass::FeatureScalarType;
80 using typename Superclass::RadiusType;
83 static constexpr
unsigned int ImageDimension = Superclass::ImageDimension;
94 return m_UpperThreshold;
104 return m_LowerThreshold;
109 CalculateSpeedImage()
override;
114 Superclass::Initialize(r);
141 m_SmoothingConductance = p;
147 return m_SmoothingConductance;
156 m_SmoothingIterations = p;
162 return m_SmoothingIterations;
171 m_SmoothingTimeStep = i;
177 return m_SmoothingTimeStep;
185 this->SetAdvectionWeight(0.0);
186 this->SetPropagationWeight(1.0);
187 this->SetCurvatureWeight(1.0);
188 this->SetSmoothingIterations(5);
189 this->SetSmoothingConductance(0.8);
190 this->SetSmoothingTimeStep(0.1);
191 this->SetEdgeWeight(0.0);
199 Superclass::PrintSelf(os, indent);
200 os << indent <<
"UpperThreshold: " << m_UpperThreshold << std::endl;
201 os << indent <<
"LowerThreshold: " << m_LowerThreshold << std::endl;
202 os << indent <<
"EdgeWeight: " << m_EdgeWeight << std::endl;
203 os << indent <<
"SmoothingTimeStep: " << m_SmoothingTimeStep << std::endl;
204 os << indent <<
"SmoothingIterations: " << m_SmoothingIterations << std::endl;
205 os << indent <<
"SmoothingConductance: " << m_SmoothingConductance << std::endl;
212 int m_SmoothingIterations{};
217 #ifndef ITK_MANUAL_INSTANTIATION
218 # include "itkThresholdSegmentationLevelSetFunction.hxx"