19 #ifndef itkIntermodesThresholdCalculator_h
20 #define itkIntermodesThresholdCalculator_h
55 template <
typename THistogram,
typename TOutput=
double>
78 itkGetConstMacro( MaximumSmoothingIterations,
SizeValueType );
82 itkSetMacro( UseInterMode,
bool);
83 itkGetConstMacro( UseInterMode,
bool );
84 itkBooleanMacro( UseInterMode );
90 m_MaximumSmoothingIterations = 10000;
91 m_UseInterMode =
true;
96 void GenerateData(
void) ITK_OVERRIDE;
97 void PrintSelf(std::ostream& os,
Indent indent) const ITK_OVERRIDE;
104 bool BimodalTest(const std::vector<
double> & h);
113 #ifndef ITK_MANUAL_INSTANTIATION
114 #include "itkIntermodesThresholdCalculator.hxx"
HistogramType::InstanceIdentifier InstanceIdentifier
IntermodesThresholdCalculator()
Light weight base class for most itk classes.
SmartPointer< Self > Pointer
Computes the Intermodes's threshold for an image.
unsigned long SizeValueType
HistogramType::TotalAbsoluteFrequencyType TotalAbsoluteFrequencyType
HistogramType::AbsoluteFrequencyType AbsoluteFrequencyType
SmartPointer< const Self > ConstPointer
IntermodesThresholdCalculator Self
virtual ~IntermodesThresholdCalculator() override
Control indentation during Print() invocation.
Base class to compute a threshold value based on the histogram of an image.
HistogramThresholdCalculator< THistogram, TOutput > Superclass