18 #ifndef __itkShiftScaleInPlaceImageFilter_h
19 #define __itkShiftScaleInPlaceImageFilter_h
20 #if !defined( ITK_LEGACY_REMOVE )
47 template<
class TInputImage >
48 class ITK_EXPORT ShiftScaleInPlaceImageFilter:
49 public InPlaceImageFilter< TInputImage >
53 typedef ShiftScaleInPlaceImageFilter Self;
54 typedef InPlaceImageFilter< TInputImage > Superclass;
55 typedef SmartPointer< Self > Pointer;
56 typedef SmartPointer< const Self > ConstPointer;
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 > ) );
121 ShiftScaleInPlaceImageFilter();
122 ~ShiftScaleInPlaceImageFilter();
123 void PrintSelf(std::ostream & os, Indent indent)
const;
126 void BeforeThreadedGenerateData();
129 void AfterThreadedGenerateData();
132 void ThreadedGenerateData(
const OutputImageRegionType &
133 outputRegionForThread,
137 ShiftScaleInPlaceImageFilter(
const Self &);
138 void operator=(
const Self &);
143 long m_UnderflowCount;
144 long m_OverflowCount;
146 Array< long > m_ThreadUnderflow;
147 Array< long > m_ThreadOverflow;
151 #ifndef ITK_MANUAL_INSTANTIATION
152 #include "itkShiftScaleInPlaceImageFilter.hxx"
155 #endif //#if !defined( ITK_LEGACY_REMOVE )