18 #ifndef sitkDoubleThresholdImageFilter_h
19 #define sitkDoubleThresholdImageFilter_h
67 SITK_RETURN_SELF_TYPE_HEADER
SetThreshold1 (
double Threshold1 ) { this->m_Threshold1 = Threshold1;
return *
this; }
77 SITK_RETURN_SELF_TYPE_HEADER
SetThreshold2 (
double Threshold2 ) { this->m_Threshold2 = Threshold2;
return *
this; }
87 SITK_RETURN_SELF_TYPE_HEADER
SetThreshold3 (
double Threshold3 ) { this->m_Threshold3 = Threshold3;
return *
this; }
97 SITK_RETURN_SELF_TYPE_HEADER
SetThreshold4 (
double Threshold4 ) { this->m_Threshold4 = Threshold4;
return *
this; }
107 SITK_RETURN_SELF_TYPE_HEADER
SetInsideValue (
uint8_t InsideValue ) { this->m_InsideValue = InsideValue;
return *
this; }
117 SITK_RETURN_SELF_TYPE_HEADER
SetOutsideValue (
uint8_t OutsideValue ) { this->m_OutsideValue = OutsideValue;
return *
this; }
127 SITK_RETURN_SELF_TYPE_HEADER
SetFullyConnected (
bool FullyConnected ) { this->m_FullyConnected = FullyConnected;
return *
this; }
138 std::string
GetName()
const {
return std::string (
"DoubleThresholdImageFilter"); }
141 std::string ToString()
const;
149 Image Execute (
const Image& image1,
double threshold1,
double threshold2,
double threshold3,
double threshold4,
uint8_t insideValue,
uint8_t outsideValue,
bool fullyConnected );
155 typedef Image (Self::*MemberFunctionType)(
const Image& image1 );
156 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
Self & SetThreshold1(double Threshold1)
std::string GetName() const
#define SITKBasicFilters_EXPORT
Self & FullyConnectedOn()
double GetThreshold3() const
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
bool GetFullyConnected() const
Self & SetThreshold2(double Threshold2)
Image DoubleThreshold(const Image &image1, double threshold1=0.0, double threshold2=1.0, double threshold3=254.0, double threshold4=255.0, uint8_t insideValue=1u, uint8_t outsideValue=0u, bool fullyConnected=false)
Binarize an input image using double thresholding.
uint8_t GetOutsideValue() const
Self & SetFullyConnected(bool FullyConnected)
Self & SetOutsideValue(uint8_t OutsideValue)
DoubleThresholdImageFilter Self
Self & FullyConnectedOff()
double GetThreshold4() const
Self & SetInsideValue(uint8_t InsideValue)
double GetThreshold1() const
Binarize an input image using double thresholding.
The Image class for SimpleITK.
Self & SetThreshold4(double Threshold4)
uint8_t GetInsideValue() const
Self & SetThreshold3(double Threshold3)
The base interface for SimpleITK filters that take one input image.
BasicPixelIDTypeList PixelIDTypeList
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
double GetThreshold2() const