18 #ifndef sitkConstantPadImageFilter_h
19 #define sitkConstantPadImageFilter_h
65 SITK_RETURN_SELF_TYPE_HEADER
SetPadLowerBound (
const std::vector<unsigned int> & PadLowerBound ) { this->m_PadLowerBound = PadLowerBound;
return *
this; }
73 SITK_RETURN_SELF_TYPE_HEADER
SetPadUpperBound (
const std::vector<unsigned int> & PadUpperBound ) { this->m_PadUpperBound = PadUpperBound;
return *
this; }
82 SITK_RETURN_SELF_TYPE_HEADER
SetConstant (
double Constant ) { this->m_Constant = Constant;
return *
this; }
89 std::string
GetName()
const {
return std::string (
"ConstantPadImageFilter"); }
92 std::string ToString()
const;
100 Image Execute (
const Image& image1,
const std::vector<unsigned int> & padLowerBound,
const std::vector<unsigned int> & padUpperBound,
double constant );
106 typedef Image (Self::*MemberFunctionType)(
const Image& image1 );
107 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
132 SITKBasicFilters_EXPORT Image ConstantPad (
const Image& image1,
const std::vector<unsigned int> & padLowerBound = std::vector<unsigned int>(3, 0),
const std::vector<unsigned int> & padUpperBound = std::vector<unsigned int>(3, 0),
double constant = 0.0 );
Increase the image size by padding with a constant value.
std::vector< unsigned int > m_PadUpperBound
#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 & SetPadUpperBound(const std::vector< unsigned int > &PadUpperBound)
ConstantPadImageFilter Self
BasicPixelIDTypeList PixelIDTypeList
Image ConstantPad(const Image &image1, const std::vector< unsigned int > &padLowerBound=std::vector< unsigned int >(3, 0), const std::vector< unsigned int > &padUpperBound=std::vector< unsigned int >(3, 0), double constant=0.0)
Increase the image size by padding with a constant value.
Self & SetPadLowerBound(const std::vector< unsigned int > &PadLowerBound)
double GetConstant() const
The Image class for SimpleITK.
std::vector< unsigned int > GetPadLowerBound() const
std::vector< unsigned int > m_PadLowerBound
Self & SetConstant(double Constant)
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
The base interface for SimpleITK filters that take one input image.
std::vector< unsigned int > GetPadUpperBound() const
std::string GetName() const