18 #ifndef sitkHuangThresholdImageFilter_h
19 #define sitkHuangThresholdImageFilter_h
70 SITK_RETURN_SELF_TYPE_HEADER
SetInsideValue (
uint8_t InsideValue ) { this->m_InsideValue = InsideValue;
return *
this; }
82 SITK_RETURN_SELF_TYPE_HEADER
SetOutsideValue (
uint8_t OutsideValue ) { this->m_OutsideValue = OutsideValue;
return *
this; }
103 SITK_RETURN_SELF_TYPE_HEADER
SetMaskOutput (
bool MaskOutput ) { this->m_MaskOutput = MaskOutput;
return *
this; }
106 SITK_RETURN_SELF_TYPE_HEADER
MaskOutputOn() {
return this->SetMaskOutput(
true); }
107 SITK_RETURN_SELF_TYPE_HEADER
MaskOutputOff() {
return this->SetMaskOutput(
false); }
116 SITK_RETURN_SELF_TYPE_HEADER
SetMaskValue (
uint8_t MaskValue ) { this->m_MaskValue = MaskValue;
return *
this; }
130 std::string
GetName()
const {
return std::string (
"HuangThresholdImageFilter"); }
133 std::string ToString()
const;
150 typedef Image (Self::*MemberFunctionType)(
const Image * image,
const Image * maskImage );
151 template <
class TImageType>
Image ExecuteInternal (
const Image * image,
const Image * maskImage );
BasicPixelIDTypeList PixelIDTypeList
#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
double GetThreshold() const
Get the computed threshold.
Threshold an image using the Huang Threshold.
uint32_t GetNumberOfHistogramBins() const
Self & SetOutsideValue(uint8_t OutsideValue)
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
Self & SetNumberOfHistogramBins(uint32_t NumberOfHistogramBins)
uint32_t m_NumberOfHistogramBins
std::string GetName() const
uint8_t GetInsideValue() const
Self & SetInsideValue(uint8_t InsideValue)
Image HuangThreshold(const Image &image, const Image &maskImage, uint8_t insideValue=1u, uint8_t outsideValue=0u, uint32_t numberOfHistogramBins=128u, bool maskOutput=true, uint8_t maskValue=255u)
Threshold an image using the Huang Threshold.
The main Image class for SimpleITK.
Self & SetMaskValue(uint8_t MaskValue)
uint8_t GetOutsideValue() const
bool GetMaskOutput() const
Self & SetMaskOutput(bool MaskOutput)
uint8_t GetMaskValue() const
HuangThresholdImageFilter Self
The base interface for SimpleITK filters that take one input image.