18 #ifndef sitkBinaryThresholdProjectionImageFilter_h
19 #define sitkBinaryThresholdProjectionImageFilter_h
78 SITK_RETURN_SELF_TYPE_HEADER
SetProjectionDimension (
unsigned int ProjectionDimension ) { this->m_ProjectionDimension = ProjectionDimension;
return *
this; }
87 SITK_RETURN_SELF_TYPE_HEADER
SetThresholdValue (
double ThresholdValue ) { this->m_ThresholdValue = ThresholdValue;
return *
this; }
97 SITK_RETURN_SELF_TYPE_HEADER
SetForegroundValue (
uint8_t ForegroundValue ) { this->m_ForegroundValue = ForegroundValue;
return *
this; }
107 SITK_RETURN_SELF_TYPE_HEADER
SetBackgroundValue (
uint8_t BackgroundValue ) { this->m_BackgroundValue = BackgroundValue;
return *
this; }
114 std::string
GetName()
const {
return std::string (
"BinaryThresholdProjectionImageFilter"); }
117 std::string ToString()
const;
125 Image Execute (
const Image& image1,
unsigned int projectionDimension,
double thresholdValue,
uint8_t foregroundValue,
uint8_t backgroundValue );
131 typedef Image (Self::*MemberFunctionType)(
const Image& image1 );
132 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
BinaryThreshold projection.
uint8_t GetForegroundValue() const
#define SITKBasicFilters_EXPORT
Self & SetThresholdValue(double ThresholdValue)
uint8_t m_ForegroundValue
unsigned int m_ProjectionDimension
uint8_t m_BackgroundValue
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
BinaryThresholdProjectionImageFilter Self
Self & SetProjectionDimension(unsigned int ProjectionDimension)
Self & SetBackgroundValue(uint8_t BackgroundValue)
BasicPixelIDTypeList PixelIDTypeList
unsigned int GetProjectionDimension() const
std::string GetName() const
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
uint8_t GetBackgroundValue() const
Self & SetForegroundValue(uint8_t ForegroundValue)
The Image class for SimpleITK.
double GetThresholdValue() const
Image BinaryThresholdProjection(const Image &image1, unsigned int projectionDimension=0u, double thresholdValue=0.0, uint8_t foregroundValue=1u, uint8_t backgroundValue=0u)
BinaryThreshold projection.
The base interface for SimpleITK filters that take one input image.