18 #ifndef itkShiftScaleInPlaceImageFilter_h
19 #define itkShiftScaleInPlaceImageFilter_h
20 #if !defined( ITK_LEGACY_REMOVE )
47 template<
typename TInputImage >
48 class ShiftScaleInPlaceImageFilter:
49 public InPlaceImageFilter< TInputImage >
53 typedef ShiftScaleInPlaceImageFilter Self;
54 typedef InPlaceImageFilter< TInputImage > Superclass;
62 typedef typename TInputImage::RegionType InputImageRegionType;
63 typedef typename TInputImage::RegionType OutputImageRegionType;
66 typedef typename TInputImage::Pointer InputImagePointer;
67 typedef typename TInputImage::Pointer OutputImagePointer;
70 typedef typename TInputImage::PixelType InputImagePixelType;
71 typedef typename TInputImage::PixelType OutputImagePixelType;
74 typedef typename TInputImage::IndexType InputImageIndexType;
75 typedef typename TInputImage::SizeType InputImageSizeType;
76 typedef typename TInputImage::OffsetType InputImageOffsetType;
77 typedef typename TInputImage::IndexType OutputImageIndexType;
78 typedef typename TInputImage::SizeType OutputImageSizeType;
79 typedef typename TInputImage::OffsetType OutputImageOffsetType;
85 itkStaticConstMacro(ImageDimension,
unsigned int,
86 TInputImage::ImageDimension);
89 itkTypeMacro(ShiftScaleInPlaceImageFilter, InPlaceImageFilter);
93 itkSetMacro(Shift, RealType);
94 itkGetConstMacro(Shift, RealType);
99 itkSetMacro(Scale, RealType);
100 itkGetConstMacro(Scale, RealType);
104 itkGetConstMacro(UnderflowCount,
long);
105 itkGetConstMacro(OverflowCount,
long);
108 #ifdef ITK_USE_CONCEPT_CHECKING
111 ( Concept::HasNumericTraits< InputImagePixelType > ) );
113 ( Concept::AdditiveOperators< InputImagePixelType, RealType, RealType > ) );
115 ( Concept::MultiplyOperator< RealType > ) );
120 ShiftScaleInPlaceImageFilter();
121 ~ShiftScaleInPlaceImageFilter();
122 void PrintSelf(std::ostream & os, Indent indent)
const ITK_OVERRIDE;
125 void BeforeThreadedGenerateData();
128 void AfterThreadedGenerateData();
131 void ThreadedGenerateData(
const OutputImageRegionType &
132 outputRegionForThread,
136 ShiftScaleInPlaceImageFilter(
const Self &);
137 void operator=(
const Self &);
142 long m_UnderflowCount;
143 long m_OverflowCount;
150 #ifndef ITK_MANUAL_INSTANTIATION
151 #include "itkShiftScaleInPlaceImageFilter.hxx"
154 #endif //#if !defined( ITK_LEGACY_REMOVE )
unsigned int ThreadIdType
#define itkConceptMacro(name, concept)