Go to the documentation of this file.
18 #ifndef sitkBinaryThresholdImageFilter_h
19 #define sitkBinaryThresholdImageFilter_h
67 SITK_RETURN_SELF_TYPE_HEADER
SetLowerThreshold (
double LowerThreshold ) { this->m_LowerThreshold = LowerThreshold;
return *
this; }
76 SITK_RETURN_SELF_TYPE_HEADER
SetUpperThreshold (
double UpperThreshold ) { this->m_UpperThreshold = UpperThreshold;
return *
this; }
86 SITK_RETURN_SELF_TYPE_HEADER
SetInsideValue (
uint8_t InsideValue ) { this->m_InsideValue = InsideValue;
return *
this; }
96 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;
121 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
129 double m_LowerThreshold{0.0};
131 double m_UpperThreshold{255.0};
138 bool m_InPlace{
false};
The Image class for SimpleITK.
Self & SetLowerThreshold(double LowerThreshold)
Image(Self::*)(const Image &image1) MemberFunctionType
Self & SetOutsideValue(uint8_t OutsideValue)
Self & SetInsideValue(uint8_t InsideValue)
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 & SetUpperThreshold(double UpperThreshold)
BasicPixelIDTypeList PixelIDTypeList
#define SITKBasicFilters_EXPORT
Binarize an input image by thresholding.
std::unique_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
uint8_t GetInsideValue() const
The base interface for SimpleITK filters that take one input image.
Image BinaryThreshold(Image &&image1, double lowerThreshold=0.0, double upperThreshold=255.0, uint8_t insideValue=1u, uint8_t outsideValue=0u)
Binarize an input image by thresholding.
double GetLowerThreshold() const
double GetUpperThreshold() const