18 #ifndef sitkBinaryThresholdImageFilter_h
19 #define sitkBinaryThresholdImageFilter_h
66 SITK_RETURN_SELF_TYPE_HEADER
SetLowerThreshold (
double LowerThreshold ) { this->m_LowerThreshold = LowerThreshold;
return *
this; }
75 SITK_RETURN_SELF_TYPE_HEADER
SetUpperThreshold (
double UpperThreshold ) { this->m_UpperThreshold = UpperThreshold;
return *
this; }
85 SITK_RETURN_SELF_TYPE_HEADER
SetInsideValue ( uint8_t InsideValue ) { this->m_InsideValue = InsideValue;
return *
this; }
95 SITK_RETURN_SELF_TYPE_HEADER
SetOutsideValue ( uint8_t OutsideValue ) { this->m_OutsideValue = OutsideValue;
return *
this; }
103 std::string
GetName()
const {
return std::string (
"BinaryThresholdImageFilter"); }
106 std::string ToString()
const;
120 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
128 double m_LowerThreshold{0.0};
130 double m_UpperThreshold{255.0};
132 uint8_t m_InsideValue{1u};
134 uint8_t m_OutsideValue{0u};
137 bool m_InPlace{
false};