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; }
99 SITK_RETURN_SELF_TYPE_HEADER
SetValleyEmphasis (
bool ValleyEmphasis ) { this->m_ValleyEmphasis = ValleyEmphasis;
return *
this; }
118 std::string
GetName()
const {
return std::string (
"OtsuMultipleThresholdsImageFilter"); }
121 std::string ToString()
const;
135 typedef Image (Self::*MemberFunctionType)(
const Image& image1 );
136 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
std::string GetName() const
Self & SetValleyEmphasis(bool ValleyEmphasis)
#define SITKBasicFilters_EXPORT
typelist::MakeTypeList< BasicPixelID< int8_t >, BasicPixelID< uint8_t >, BasicPixelID< int16_t >, BasicPixelID< uint16_t >, BasicPixelID< int32_t >, BasicPixelID< uint32_t >, BasicPixelID< float >, BasicPixelID< double > >::Type BasicPixelIDTypeList
OtsuMultipleThresholdsImageFilter Self
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
bool GetValleyEmphasis() const
std::vector< double > m_Thresholds
uint8_t GetLabelOffset() const
Self & ValleyEmphasisOff()
uint8_t m_NumberOfThresholds
BasicPixelIDTypeList PixelIDTypeList
Image OtsuMultipleThresholds(const Image &image1, uint8_t numberOfThresholds=1u, uint8_t labelOffset=0u, uint32_t numberOfHistogramBins=128u, bool valleyEmphasis=false)
Threshold an image using multiple Otsu Thresholds.
Self & SetLabelOffset(uint8_t LabelOffset)
The Image class for SimpleITK.
Self & ValleyEmphasisOn()
Self & SetNumberOfHistogramBins(uint32_t NumberOfHistogramBins)
std::vector< double > GetThresholds() const
uint8_t GetNumberOfThresholds() const
uint32_t m_NumberOfHistogramBins
Threshold an image using multiple Otsu Thresholds.
uint32_t GetNumberOfHistogramBins() const
The base interface for SimpleITK filters that take one input image.
Self & SetNumberOfThresholds(uint8_t NumberOfThresholds)