19 #ifndef itkOtsuThresholdCalculator_h
20 #define itkOtsuThresholdCalculator_h
43 template <
typename THistogram,
typename TOutput=
double>
67 itkSetMacro(ReturnBinMidpoint,
bool);
68 itkGetConstReferenceMacro(ReturnBinMidpoint,
bool);
69 itkBooleanMacro(ReturnBinMidpoint);
85 void PrintSelf(std::ostream & os,
Indent indent)
const override;
86 void GenerateData()
override;
90 #if defined(ITKV4_COMPATIBILITY)
91 bool m_ReturnBinMidpoint{
true };
93 bool m_ReturnBinMidpoint{
false };
100 #ifndef ITK_MANUAL_INSTANTIATION
101 #include "itkOtsuThresholdCalculator.hxx"
Light weight base class for most itk classes.
OtsuThresholdCalculator()
Computes the Otsu's threshold for an image.
Computes Otsu's multiple thresholds for a histogram.
Control indentation during Print() invocation.
Base class to compute a threshold value based on the histogram of an image.
OtsuMultipleThresholdsCalculator< THistogram >::Pointer m_OtsuMultipleThresholdsCalculator