18 #ifndef sitkConstantPadImageFilter_h
19 #define sitkConstantPadImageFilter_h
71 SITK_RETURN_SELF_TYPE_HEADER
SetPadLowerBound (
const std::vector<unsigned int> & PadLowerBound ) { this->m_PadLowerBound = PadLowerBound;
return *
this; }
79 SITK_RETURN_SELF_TYPE_HEADER
SetPadUpperBound (
const std::vector<unsigned int> & PadUpperBound ) { this->m_PadUpperBound = PadUpperBound;
return *
this; }
88 SITK_RETURN_SELF_TYPE_HEADER
SetConstant (
double Constant ) { this->m_Constant = Constant;
return *
this; }
95 std::string
GetName()
const {
return std::string (
"ConstantPadImageFilter"); }
98 std::string ToString()
const;
106 Image Execute (
const Image& image1,
const std::vector<unsigned int> & padLowerBound,
const std::vector<unsigned int> & padUpperBound,
double constant );
113 typedef Image (Self::*MemberFunctionType)(
const Image& image1 );
114 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
141 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 main 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