Go to the documentation of this file.
18 #ifndef sitkThresholdImageFilter_h
19 #define sitkThresholdImageFilter_h
71 SITK_RETURN_SELF_TYPE_HEADER
SetLower (
double Lower ) { this->m_Lower = Lower;
return *
this; }
76 double GetLower()
const {
return this->m_Lower; }\
81 SITK_RETURN_SELF_TYPE_HEADER
SetUpper (
double Upper ) { this->m_Upper = Upper;
return *
this; }
86 double GetUpper()
const {
return this->m_Upper; }\
91 SITK_RETURN_SELF_TYPE_HEADER
SetOutsideValue (
double OutsideValue ) { this->m_OutsideValue = OutsideValue;
return *
this; }
99 std::string
GetName()
const {
return std::string (
"ThresholdImageFilter"); }
102 std::string ToString()
const;
112 void ThresholdAbove(
double threshold );
114 void ThresholdBelow(
double threshold );
116 void ThresholdOutside(
double lower,
double upper );
123 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
135 double m_OutsideValue{0.0};
138 bool m_InPlace{
false};
The Image class for SimpleITK.
Self & SetLower(double Lower)
Self & SetUpper(double Upper)
BasicPixelIDTypeList PixelIDTypeList
typelist2::typelist< BasicPixelID< int8_t >, BasicPixelID< uint8_t >, BasicPixelID< int16_t >, BasicPixelID< uint16_t >, BasicPixelID< int32_t >, BasicPixelID< uint32_t >, BasicPixelID< float >, BasicPixelID< double > > 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 outside threshold values.
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 outside threshold values.