18 #ifndef sitkOtsuMultipleThresholdsImageFilter_h
19 #define sitkOtsuMultipleThresholdsImageFilter_h
69 SITK_RETURN_SELF_TYPE_HEADER
SetNumberOfThresholds ( uint8_t NumberOfThresholds ) { this->m_NumberOfThresholds = NumberOfThresholds;
return *
this; }
79 SITK_RETURN_SELF_TYPE_HEADER
SetLabelOffset ( uint8_t LabelOffset ) { this->m_LabelOffset = LabelOffset;
return *
this; }
89 SITK_RETURN_SELF_TYPE_HEADER
SetNumberOfHistogramBins ( uint32_t NumberOfHistogramBins ) { this->m_NumberOfHistogramBins = NumberOfHistogramBins;
return *
this; }
99 SITK_RETURN_SELF_TYPE_HEADER
SetValleyEmphasis (
bool ValleyEmphasis ) { this->m_ValleyEmphasis = ValleyEmphasis;
return *
this; }
113 SITK_RETURN_SELF_TYPE_HEADER
SetReturnBinMidpoint (
bool ReturnBinMidpoint ) { this->m_ReturnBinMidpoint = ReturnBinMidpoint;
return *
this; }
133 std::string
GetName()
const {
return std::string (
"OtsuMultipleThresholdsImageFilter"); }
136 std::string ToString()
const;
148 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
156 uint8_t m_NumberOfThresholds{1u};
158 uint8_t m_LabelOffset{0u};
160 uint32_t m_NumberOfHistogramBins{128u};
163 bool m_ValleyEmphasis{
false};
165 bool m_ReturnBinMidpoint{
false};
168 std::vector<double> m_Thresholds{std::vector<double>()};