Go to the documentation of this file.
18 #ifndef sitkThresholdImageFilter_h
19 #define sitkThresholdImageFilter_h
72 SITK_RETURN_SELF_TYPE_HEADER
SetLower (
double Lower ) { this->m_Lower = Lower;
return *
this; }
77 double GetLower()
const {
return this->m_Lower; }\
82 SITK_RETURN_SELF_TYPE_HEADER
SetUpper (
double Upper ) { this->m_Upper = Upper;
return *
this; }
87 double GetUpper()
const {
return this->m_Upper; }\
92 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;
117 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
129 double m_OutsideValue{0.0};
132 bool m_InPlace{
false};
The Image class for SimpleITK.
Self & SetLower(double Lower)
Self & SetUpper(double Upper)
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
double GetOutsideValue() const
std::unique_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
std::string GetName() const
Self & SetOutsideValue(double OutsideValue)
#define SITKBasicFilters_EXPORT
Image Threshold(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...
The base interface for SimpleITK filters that take one input image.
Image(Self::*)(const Image &image1) MemberFunctionType
Set image values to a user-specified value if they are below, above, or between simple threshold valu...