18 #ifndef itkThresholdSegmentationLevelSetFunction_h
19 #define itkThresholdSegmentationLevelSetFunction_h
55 template<
typename TImageType,
typename TFeatureImageType = TImageType >
83 static constexpr
unsigned int ImageDimension = Superclass::ImageDimension;
87 { m_UpperThreshold = f; }
89 {
return m_UpperThreshold; }
91 { m_LowerThreshold = f; }
93 {
return m_LowerThreshold; }
96 void CalculateSpeedImage()
override;
100 Superclass::Initialize(r);
124 m_SmoothingConductance = p;
129 return m_SmoothingConductance;
137 m_SmoothingIterations = p;
142 return m_SmoothingIterations;
150 m_SmoothingTimeStep = i;
155 return m_SmoothingTimeStep;
163 this->SetAdvectionWeight(0.0);
164 this->SetPropagationWeight(1.0);
165 this->SetCurvatureWeight(1.0);
166 this->SetSmoothingIterations(5);
167 this->SetSmoothingConductance(0.8);
168 this->SetSmoothingTimeStep(0.1);
169 this->SetEdgeWeight(0.0);
176 Superclass::PrintSelf(os, indent);
177 os << indent <<
"UpperThreshold: " << m_UpperThreshold << std::endl;
178 os << indent <<
"LowerThreshold: " << m_LowerThreshold << std::endl;
179 os << indent <<
"EdgeWeight: " << m_EdgeWeight << std::endl;
180 os << indent <<
"SmoothingTimeStep: " << m_SmoothingTimeStep << std::endl;
181 os << indent <<
"SmoothingIterations: " << m_SmoothingIterations << std::endl;
182 os << indent <<
"SmoothingConductance: " << m_SmoothingConductance << std::endl;
194 #ifndef ITK_MANUAL_INSTANTIATION
195 #include "itkThresholdSegmentationLevelSetFunction.hxx"
PixelType ScalarValueType
FeatureScalarType GetUpperThreshold() const
void SetLowerThreshold(FeatureScalarType f)
Light weight base class for most itk classes.
typename FeatureImageType::PixelType FeatureScalarType
ScalarValueType m_SmoothingConductance
Define numeric traits for std::vector.
ScalarValueType GetSmoothingTimeStep() const
int m_SmoothingIterations
FeatureScalarType m_LowerThreshold
ScalarValueType GetEdgeWeight() const
void SetSmoothingTimeStep(const ScalarValueType i)
void SetEdgeWeight(const ScalarValueType p)
typename ConstNeighborhoodIterator< TImageType >::RadiusType RadiusType
void SetUpperThreshold(FeatureScalarType f)
FeatureScalarType GetLowerThreshold() const
void SetSmoothingConductance(const ScalarValueType p)
void Initialize(const RadiusType &r) override
ThresholdSegmentationLevelSetFunction()
FeatureScalarType m_UpperThreshold
ScalarValueType m_SmoothingTimeStep
void PrintSelf(std::ostream &os, Indent indent) const override
int GetSmoothingIterations() const
Control indentation during Print() invocation.
TFeatureImageType FeatureImageType
void SetSmoothingIterations(const int p)
typename Superclass::ScalarValueType ScalarValueType
ScalarValueType GetSmoothingConductance() const
This function is used in ThresholdSegmentationLevelSetImageFilter to segment structures in images bas...
ScalarValueType m_EdgeWeight