18 #ifndef itkThresholdSegmentationLevelSetFunction_h
19 #define itkThresholdSegmentationLevelSetFunction_h
55 template<
typename TImageType,
typename 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() ITK_OVERRIDE;
97 virtual
void Initialize(const
RadiusType & r) ITK_OVERRIDE
99 Superclass::Initialize(r);
123 m_SmoothingConductance = p;
128 return m_SmoothingConductance;
136 m_SmoothingIterations = p;
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);
177 Superclass::PrintSelf(os, indent);
178 os << indent <<
"UpperThreshold: " << m_UpperThreshold << std::endl;
179 os << indent <<
"LowerThreshold: " << m_LowerThreshold << std::endl;
180 os << indent <<
"EdgeWeight: " << m_EdgeWeight << std::endl;
181 os << indent <<
"SmoothingTimeStep: " << m_SmoothingTimeStep << std::endl;
182 os << indent <<
"SmoothingIterations: " << m_SmoothingIterations << std::endl;
183 os << indent <<
"SmoothingConductance: " << m_SmoothingConductance << std::endl;
195 #ifndef ITK_MANUAL_INSTANTIATION
196 #include "itkThresholdSegmentationLevelSetFunction.hxx"
FeatureScalarType GetUpperThreshold() const
void SetLowerThreshold(FeatureScalarType f)
Light weight base class for most itk classes.
PixelType ScalarValueType
ScalarValueType m_SmoothingConductance
ScalarValueType GetSmoothingTimeStep() const
int m_SmoothingIterations
FeatureScalarType m_LowerThreshold
ScalarValueType GetEdgeWeight() const
void SetSmoothingTimeStep(const ScalarValueType i)
ConstNeighborhoodIterator< TImageType >::RadiusType RadiusType
Superclass::ScalarValueType ScalarValueType
Superclass::RadiusType RadiusType
void SetEdgeWeight(const ScalarValueType p)
SegmentationLevelSetFunction< TImageType, TFeatureImageType > Superclass
Superclass::ScalarValueType ScalarValueType
static ITK_CONSTEXPR_FUNC T max(const T &)
virtual ~ThresholdSegmentationLevelSetFunction() override
void SetUpperThreshold(FeatureScalarType f)
SmartPointer< const Self > ConstPointer
FeatureScalarType GetLowerThreshold() const
void SetSmoothingConductance(const ScalarValueType p)
Superclass::FeatureScalarType FeatureScalarType
ThresholdSegmentationLevelSetFunction()
FeatureScalarType m_UpperThreshold
ScalarValueType m_SmoothingTimeStep
static ITK_CONSTEXPR_FUNC T NonpositiveMin()
FeatureImageType::PixelType FeatureScalarType
void PrintSelf(std::ostream &os, Indent indent) const override
int GetSmoothingIterations() const
TFeatureImageType FeatureImageType
Control indentation during Print() invocation.
Superclass::ImageType ImageType
void SetSmoothingIterations(const int p)
Define additional traits for native types such as int or float.
ThresholdSegmentationLevelSetFunction Self
ScalarValueType GetSmoothingConductance() const
This function is used in ThresholdSegmentationLevelSetImageFilter to segment structures in images bas...
ScalarValueType m_EdgeWeight
SmartPointer< Self > Pointer