18 #ifndef sitkBinaryProjectionImageFilter_h
19 #define sitkBinaryProjectionImageFilter_h
78 SITK_RETURN_SELF_TYPE_HEADER
SetProjectionDimension (
unsigned int ProjectionDimension ) { this->m_ProjectionDimension = ProjectionDimension;
return *
this; }
87 SITK_RETURN_SELF_TYPE_HEADER
SetForegroundValue (
double ForegroundValue ) { this->m_ForegroundValue = ForegroundValue;
return *
this; }
97 SITK_RETURN_SELF_TYPE_HEADER
SetBackgroundValue (
double BackgroundValue ) { this->m_BackgroundValue = BackgroundValue;
return *
this; }
104 std::string
GetName()
const {
return std::string (
"BinaryProjectionImageFilter"); }
107 std::string ToString()
const;
115 Image Execute (
const Image& image1,
unsigned int projectionDimension,
double foregroundValue,
double backgroundValue );
122 typedef Image (Self::*MemberFunctionType)(
const Image& image1 );
123 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
unsigned int GetProjectionDimension() const
#define SITKBasicFilters_EXPORT
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 & SetForegroundValue(double ForegroundValue)
Image BinaryProjection(const Image &image1, unsigned int projectionDimension=0u, double foregroundValue=1.0, double backgroundValue=0.0)
Binary projection.
BinaryProjectionImageFilter Self
BasicPixelIDTypeList PixelIDTypeList
unsigned int m_ProjectionDimension
double GetForegroundValue() const
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
double GetBackgroundValue() const
std::string GetName() const
The main Image class for SimpleITK.
Self & SetBackgroundValue(double BackgroundValue)
Self & SetProjectionDimension(unsigned int ProjectionDimension)
The base interface for SimpleITK filters that take one input image.