18 #ifndef itkShiftScaleInPlaceImageFilter_h
19 #define itkShiftScaleInPlaceImageFilter_h
20 #if !defined( ITK_LEGACY_REMOVE )
47 template<
typename TInputImage >
48 class ITK_TEMPLATE_EXPORT 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;
76 typedef typename TInputImage::OffsetType InputImageOffsetType;
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() ITK_OVERRIDE;
128 void AfterThreadedGenerateData() ITK_OVERRIDE;
131 void ThreadedGenerateData(const OutputImageRegionType &
132 outputRegionForThread,
136 ITK_DISALLOW_COPY_AND_ASSIGN(ShiftScaleInPlaceImageFilter);
141 long m_UnderflowCount;
142 long m_OverflowCount;
144 Array<
long > m_ThreadUnderflow;
145 Array<
long > m_ThreadOverflow;
149 #ifndef ITK_MANUAL_INSTANTIATION
150 #include "itkShiftScaleInPlaceImageFilter.hxx"
153 #endif //#if !defined( ITK_LEGACY_REMOVE )
unsigned int ThreadIdType
ImageBaseType::SizeType SizeType
#define itkConceptMacro(name, concept)
ImageBaseType::IndexType IndexType