18 #ifndef sitkShiftScaleImageFilter_h
19 #define sitkShiftScaleImageFilter_h
61 SITK_RETURN_SELF_TYPE_HEADER
SetShift (
double Shift ) { this->m_Shift = Shift;
return *
this; }
66 double GetShift()
const {
return this->m_Shift; }
71 SITK_RETURN_SELF_TYPE_HEADER
SetScale (
double Scale ) { this->m_Scale = Scale;
return *
this; }
76 double GetScale()
const {
return this->m_Scale; }
94 std::string
GetName()
const {
return std::string (
"ShiftScaleImageFilter"); }
97 std::string ToString()
const;
105 Image Execute (
const Image& image1,
double shift,
double scale );
111 typedef Image (Self::*MemberFunctionType)(
const Image& image1 );
112 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
114 template <
class TImageType>
Image ExecuteInternalVectorImage (
const Image& image );
Self & SetShift(double Shift)
#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 & SetScale(double Scale)
BasicPixelIDTypeList PixelIDTypeList
int64_t GetUnderflowCount() const
Shift and scale the pixels in an image.
int64_t GetOverflowCount() const
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
std::string GetName() const
ShiftScaleImageFilter Self
The Image class for SimpleITK.
The base interface for SimpleITK filters that take one input image.
Image ShiftScale(const Image &image1, double shift=0, double scale=1.0)
Shift and scale the pixels in an image.