18 #ifndef sitkThresholdImageFilter_h
19 #define sitkThresholdImageFilter_h
79 SITK_RETURN_SELF_TYPE_HEADER
SetLower (
double Lower ) { this->m_Lower = Lower;
return *
this; }
84 double GetLower()
const {
return this->m_Lower; }
89 SITK_RETURN_SELF_TYPE_HEADER
SetUpper (
double Upper ) { this->m_Upper = Upper;
return *
this; }
94 double GetUpper()
const {
return this->m_Upper; }
99 SITK_RETURN_SELF_TYPE_HEADER
SetOutsideValue (
double OutsideValue ) { this->m_OutsideValue = OutsideValue;
return *
this; }
106 std::string
GetName()
const {
return std::string (
"ThresholdImageFilter"); }
109 std::string ToString()
const;
117 Image Execute (
const Image& image1,
double lower,
double upper,
double outsideValue );
124 typedef Image (Self::*MemberFunctionType)(
const Image& image1 );
125 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
Set image values to a user-specified value if they are below, above, or between simple threshold valu...
#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
std::string GetName() const
ThresholdImageFilter Self
Image Threshold(const Image &image1, double lower=0.0, double upper=1.0, double outsideValue=0.0)
Set image values to a user-specified value if they are below, above, or between simple threshold valu...
Self & SetOutsideValue(double OutsideValue)
BasicPixelIDTypeList PixelIDTypeList
double GetOutsideValue() const
The main Image class for SimpleITK.
Self & SetLower(double Lower)
Self & SetUpper(double Upper)
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
The base interface for SimpleITK filters that take one input image.