18 #ifndef sitkThresholdImageFilter_h
19 #define sitkThresholdImageFilter_h
73 SITK_RETURN_SELF_TYPE_HEADER
SetLower (
double Lower ) { this->m_Lower = Lower;
return *
this; }
78 double GetLower()
const {
return this->m_Lower; }
83 SITK_RETURN_SELF_TYPE_HEADER
SetUpper (
double Upper ) { this->m_Upper = Upper;
return *
this; }
88 double GetUpper()
const {
return this->m_Upper; }
93 SITK_RETURN_SELF_TYPE_HEADER
SetOutsideValue (
double OutsideValue ) { this->m_OutsideValue = OutsideValue;
return *
this; }
100 std::string
GetName()
const {
return std::string (
"ThresholdImageFilter"); }
103 std::string ToString()
const;
111 Image Execute (
const Image& image1,
double lower,
double upper,
double outsideValue );
117 typedef Image (Self::*MemberFunctionType)(
const Image& image1 );
118 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 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.