18 #ifndef sitkOtsuMultipleThresholdsImageFilter_h
19 #define sitkOtsuMultipleThresholdsImageFilter_h
70 SITK_RETURN_SELF_TYPE_HEADER
SetNumberOfThresholds ( uint8_t NumberOfThresholds ) { this->m_NumberOfThresholds = NumberOfThresholds;
return *
this; }
80 SITK_RETURN_SELF_TYPE_HEADER
SetLabelOffset ( uint8_t LabelOffset ) { this->m_LabelOffset = LabelOffset;
return *
this; }
90 SITK_RETURN_SELF_TYPE_HEADER
SetNumberOfHistogramBins ( uint32_t NumberOfHistogramBins ) { this->m_NumberOfHistogramBins = NumberOfHistogramBins;
return *
this; }
100 SITK_RETURN_SELF_TYPE_HEADER
SetValleyEmphasis (
bool ValleyEmphasis ) { this->m_ValleyEmphasis = ValleyEmphasis;
return *
this; }
114 SITK_RETURN_SELF_TYPE_HEADER
SetReturnBinMidpoint (
bool ReturnBinMidpoint ) { this->m_ReturnBinMidpoint = ReturnBinMidpoint;
return *
this; }
134 std::string
GetName()
const {
return std::string (
"OtsuMultipleThresholdsImageFilter"); }
137 std::string ToString()
const;
149 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
157 uint8_t m_NumberOfThresholds{1u};
159 uint8_t m_LabelOffset{0u};
161 uint32_t m_NumberOfHistogramBins{128u};
164 bool m_ValleyEmphasis{
false};
166 bool m_ReturnBinMidpoint{
false};
169 std::vector<double> m_Thresholds{std::vector<double>()};