Go to the documentation of this file.
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;
136 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
The main Image class for SimpleITK.
uint8_t GetNumberOfThresholds() const
Threshold an image using multiple Otsu Thresholds.
Self & SetValleyEmphasis(bool ValleyEmphasis)
uint8_t m_NumberOfThresholds
uint8_t GetLabelOffset() const
BasicPixelIDTypeList PixelIDTypeList
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
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.
uint32_t m_NumberOfHistogramBins
#define SITKBasicFilters_EXPORT
Self & SetLabelOffset(uint8_t LabelOffset)
Self & SetNumberOfHistogramBins(uint32_t NumberOfHistogramBins)
uint32_t GetNumberOfHistogramBins() const
std::string GetName() const
OtsuMultipleThresholdsImageFilter Self
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
The base interface for SimpleITK filters that take one input image.
Base class for SimpleITK classes based on ProcessObject.
Self & ValleyEmphasisOff()
Self & ValleyEmphasisOn()
std::vector< double > m_Thresholds
std::vector< double > GetThresholds() const
bool GetValleyEmphasis() const
Self & SetNumberOfThresholds(uint8_t NumberOfThresholds)