18 #ifndef sitkBinaryThresholdImageFilter_h
19 #define sitkBinaryThresholdImageFilter_h
68 SITK_RETURN_SELF_TYPE_HEADER
SetLowerThreshold (
double LowerThreshold ) { this->m_LowerThreshold = LowerThreshold;
return *
this; }
77 SITK_RETURN_SELF_TYPE_HEADER
SetUpperThreshold (
double UpperThreshold ) { this->m_UpperThreshold = UpperThreshold;
return *
this; }
87 SITK_RETURN_SELF_TYPE_HEADER
SetInsideValue (
uint8_t InsideValue ) { this->m_InsideValue = InsideValue;
return *
this; }
97 SITK_RETURN_SELF_TYPE_HEADER
SetOutsideValue (
uint8_t OutsideValue ) { this->m_OutsideValue = OutsideValue;
return *
this; }
104 std::string
GetName()
const {
return std::string (
"BinaryThresholdImageFilter"); }
107 std::string ToString()
const;
115 Image Execute (
const Image& image1,
double lowerThreshold,
double upperThreshold,
uint8_t insideValue,
uint8_t outsideValue );
121 typedef Image (Self::*MemberFunctionType)(
const Image& image1 );
122 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
Image BinaryThreshold(const Image &image1, double lowerThreshold=0.0, double upperThreshold=255.0, uint8_t insideValue=1u, uint8_t outsideValue=0u)
Binarize an input image by thresholding.
#define SITKBasicFilters_EXPORT
uint8_t GetInsideValue() const
Binarize an input image by thresholding.
double GetLowerThreshold() const
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
uint8_t GetOutsideValue() const
std::string GetName() const
Self & SetOutsideValue(uint8_t OutsideValue)
BinaryThresholdImageFilter Self
Self & SetUpperThreshold(double UpperThreshold)
The Image class for SimpleITK.
double GetUpperThreshold() const
Self & SetLowerThreshold(double LowerThreshold)
Self & SetInsideValue(uint8_t InsideValue)
The base interface for SimpleITK filters that take one input image.
BasicPixelIDTypeList PixelIDTypeList