19 #ifndef itkIntermodesThresholdCalculator_h
20 #define itkIntermodesThresholdCalculator_h
55 template <
typename THistogram,
typename TOutput=
double>
80 itkGetConstMacro( MaximumSmoothingIterations,
SizeValueType );
84 itkSetMacro( UseInterMode,
bool);
85 itkGetConstMacro( UseInterMode,
bool );
86 itkBooleanMacro( UseInterMode );
92 m_MaximumSmoothingIterations = 10000;
93 m_UseInterMode =
true;
98 void GenerateData()
override;
99 void PrintSelf(std::ostream& os,
Indent indent)
const override;
105 bool BimodalTest(
const std::vector<double> & h);
114 #ifndef ITK_MANUAL_INSTANTIATION
115 #include "itkIntermodesThresholdCalculator.hxx"
IntermodesThresholdCalculator()
Light weight base class for most itk classes.
unsigned long SizeValueType
Computes the Intermodes's threshold for an image.
typename HistogramType::InstanceIdentifier InstanceIdentifier
SizeValueType m_MaximumSmoothingIterations
typename HistogramType::AbsoluteFrequencyType AbsoluteFrequencyType
typename HistogramType::TotalAbsoluteFrequencyType TotalAbsoluteFrequencyType
Control indentation during Print() invocation.
Base class to compute a threshold value based on the histogram of an image.