Go to the documentation of this file.
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; }
139 std::string
GetName()
const {
return std::string (
"DoubleThresholdImageFilter"); }
142 std::string ToString()
const;
154 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
162 double m_Threshold1{0.0};
164 double m_Threshold2{1.0};
166 double m_Threshold3{254.0};
168 double m_Threshold4{255.0};
174 bool m_FullyConnected{
false};
The Image class for SimpleITK.
uint8_t GetInsideValue() const
Self & SetInsideValue(uint8_t InsideValue)
double GetThreshold1() 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
Self & FullyConnectedOff()
std::string GetName() const
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.
double GetThreshold2() const
Binarize an input image using double thresholding.
bool GetFullyConnected() const
#define SITKBasicFilters_EXPORT
Self & SetOutsideValue(uint8_t OutsideValue)
double GetThreshold4() const
Self & SetThreshold1(double Threshold1)
std::unique_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
Self & SetThreshold4(double Threshold4)
The base interface for SimpleITK filters that take one input image.
double GetThreshold3() const
uint8_t GetOutsideValue() const
Self & SetThreshold3(double Threshold3)
Self & SetFullyConnected(bool FullyConnected)
Self & FullyConnectedOn()
Self & SetThreshold2(double Threshold2)
BasicPixelIDTypeList PixelIDTypeList
Image(Self::*)(const Image &image1) MemberFunctionType