Go to the documentation of this file.
18 #ifndef sitkIsoDataThresholdImageFilter_h
19 #define sitkIsoDataThresholdImageFilter_h
71 SITK_RETURN_SELF_TYPE_HEADER
SetInsideValue (
uint8_t InsideValue ) { this->m_InsideValue = InsideValue;
return *
this; }
83 SITK_RETURN_SELF_TYPE_HEADER
SetOutsideValue (
uint8_t OutsideValue ) { this->m_OutsideValue = OutsideValue;
return *
this; }
104 SITK_RETURN_SELF_TYPE_HEADER
SetMaskOutput (
bool MaskOutput ) { this->m_MaskOutput = MaskOutput;
return *
this; }
107 SITK_RETURN_SELF_TYPE_HEADER
MaskOutputOn() {
return this->SetMaskOutput(
true); }
108 SITK_RETURN_SELF_TYPE_HEADER
MaskOutputOff() {
return this->SetMaskOutput(
false); }
117 SITK_RETURN_SELF_TYPE_HEADER
SetMaskValue (
uint8_t MaskValue ) { this->m_MaskValue = MaskValue;
return *
this; }
132 std::string
GetName()
const {
return std::string (
"IsoDataThresholdImageFilter"); }
135 std::string ToString()
const;
148 template <
class TImageType>
Image ExecuteInternal (
const Image * image,
const Image * maskImage );
162 bool m_MaskOutput{
true};
167 double m_Threshold{0.0};
The Image class for SimpleITK.
Self & SetInsideValue(uint8_t InsideValue)
uint32_t GetNumberOfHistogramBins() 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
Threshold an image using the IsoData Threshold.
Self & SetMaskValue(uint8_t MaskValue)
uint8_t GetOutsideValue() const
uint8_t GetInsideValue() const
BasicPixelIDTypeList PixelIDTypeList
uint8_t GetMaskValue() const
Self & SetMaskOutput(bool MaskOutput)
Image IsoDataThreshold(const Image &image, const Image &maskImage, uint8_t insideValue=1u, uint8_t outsideValue=0u, uint32_t numberOfHistogramBins=256u, bool maskOutput=true, uint8_t maskValue=255u)
Threshold an image using the IsoData Threshold.
#define SITKBasicFilters_EXPORT
std::string GetName() const
double GetThreshold() const
Get the computed threshold.
Image(Self::*)(const Image *image, const Image *maskImage) MemberFunctionType
Self & SetOutsideValue(uint8_t OutsideValue)
The base interface for SimpleITK filters that take one input image.
std::unique_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
bool GetMaskOutput() const
Self & SetNumberOfHistogramBins(uint32_t NumberOfHistogramBins)