18 #ifndef __itkThresholdSegmentationLevelSetFunction_h
19 #define __itkThresholdSegmentationLevelSetFunction_h
55 template<
class TImageType,
class TFeatureImageType = TImageType >
75 typedef typename Superclass::ImageType
ImageType;
81 itkStaticConstMacro(ImageDimension,
unsigned int,
82 Superclass::ImageDimension);
86 { m_UpperThreshold = f; }
88 {
return m_UpperThreshold; }
90 { m_LowerThreshold = f; }
92 {
return m_LowerThreshold; }
95 virtual void CalculateSpeedImage();
99 Superclass::Initialize(r);
123 m_SmoothingConductance = p;
128 return m_SmoothingConductance;
134 void SetSmoothingIterations(
const int p)
136 m_SmoothingIterations = p;
139 int GetSmoothingIterations()
const
141 return m_SmoothingIterations;
149 m_SmoothingTimeStep = i;
154 return m_SmoothingTimeStep;
162 this->SetAdvectionWeight(0.0);
163 this->SetPropagationWeight(1.0);
164 this->SetCurvatureWeight(1.0);
165 this->SetSmoothingIterations(5);
166 this->SetSmoothingConductance(0.8);
167 this->SetSmoothingTimeStep(0.1);
168 this->SetEdgeWeight(0.0);
175 void operator=(
const Self &);
178 void PrintSelf(std::ostream & os,
Indent indent)
const
180 Superclass::PrintSelf(os, indent);
181 os << indent <<
"UpperThreshold: " << m_UpperThreshold << std::endl;
182 os << indent <<
"LowerThreshold: " << m_LowerThreshold << std::endl;
183 os << indent <<
"EdgeWeight: " << m_EdgeWeight << std::endl;
184 os << indent <<
"SmoothingTimeStep: " << m_SmoothingTimeStep << std::endl;
185 os << indent <<
"SmoothingIterations: " << m_SmoothingIterations << std::endl;
186 os << indent <<
"SmoothingConductance: " << m_SmoothingConductance << std::endl;
198 #ifndef ITK_MANUAL_INSTANTIATION
199 #include "itkThresholdSegmentationLevelSetFunction.hxx"