Go to the documentation of this file.
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; }\
105 std::string
GetName()
const {
return std::string (
"ShiftScaleImageFilter"); }
108 std::string ToString()
const;
121 template <
class TImageType1,
class TImageType2>
Image DualExecuteInternal (
const Image& image1 );
123 template <
class TImageType1,
class TImageType2>
Image DualExecuteInternalVector (
const Image& image1 );
136 int64_t m_UnderflowCount{0u};
138 int64_t m_OverflowCount{0u};
The Image class for SimpleITK.
Image ShiftScale(const Image &image1, double shift=0, double scale=1.0, PixelIDValueEnum outputPixelType=itk::simple::sitkUnknown)
Shift and scale the pixels in an image.
typelist2::typelist< BasicPixelID< int8_t >, BasicPixelID< uint8_t >, BasicPixelID< int16_t >, BasicPixelID< uint16_t >, BasicPixelID< int32_t >, BasicPixelID< uint32_t >, BasicPixelID< float >, BasicPixelID< double > > BasicPixelIDTypeList
std::unique_ptr< detail::DualMemberFunctionFactory< MemberFunctionType > > m_DualMemberFactory
Image(Self::*)(const Image &image1) MemberFunctionType
PixelIDValueEnum GetOutputPixelType() const
Get the output pixel type.
PixelIDValueEnum
Enumerated values of pixelIDs.
int64_t GetUnderflowCount() const
Shift and scale the pixels in an image.
BasicPixelIDTypeList PixelIDTypeList
std::string GetName() const
Self & SetScale(double Scale)
#define SITKBasicFilters_EXPORT
Self & SetOutputPixelType(PixelIDValueEnum OutputPixelType)
Set the output pixel type, if sitkUnknown then the input type is used.
The base interface for SimpleITK filters that take one input image.
Self & SetShift(double Shift)
int64_t GetOverflowCount() const