ITK  4.2.0
Insight Segmentation and Registration Toolkit
itkShiftScaleInPlaceImageFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 #ifndef __itkShiftScaleInPlaceImageFilter_h
19 #define __itkShiftScaleInPlaceImageFilter_h
20 
21 #include "itkInPlaceImageFilter.h"
22 #include "itkArray.h"
23 
24 namespace itk
25 {
45 template< class TInputImage >
47  public InPlaceImageFilter< TInputImage >
48 {
49 public:
55 
57  itkNewMacro(Self);
58 
60  typedef typename TInputImage::RegionType InputImageRegionType;
61  typedef typename TInputImage::RegionType OutputImageRegionType;
62 
64  typedef typename TInputImage::Pointer InputImagePointer;
65  typedef typename TInputImage::Pointer OutputImagePointer;
66 
68  typedef typename TInputImage::PixelType InputImagePixelType;
69  typedef typename TInputImage::PixelType OutputImagePixelType;
70 
72  typedef typename TInputImage::IndexType InputImageIndexType;
73  typedef typename TInputImage::SizeType InputImageSizeType;
74  typedef typename TInputImage::OffsetType InputImageOffsetType;
75  typedef typename TInputImage::IndexType OutputImageIndexType;
76  typedef typename TInputImage::SizeType OutputImageSizeType;
77  typedef typename TInputImage::OffsetType OutputImageOffsetType;
78 
81 
83  itkStaticConstMacro(ImageDimension, unsigned int,
84  TInputImage::ImageDimension);
85 
88 
91  itkSetMacro(Shift, RealType);
92  itkGetConstMacro(Shift, RealType);
94 
97  itkSetMacro(Scale, RealType);
98  itkGetConstMacro(Scale, RealType);
100 
102  itkGetConstMacro(UnderflowCount, long);
103  itkGetConstMacro(OverflowCount, long);
105 
106 #ifdef ITK_USE_CONCEPT_CHECKING
107 
108  itkConceptMacro( InputHasNumericTraitsCheck,
110  itkConceptMacro( InputPlusRealTypeCheck,
112  itkConceptMacro( RealTypeMultiplyOperatorCheck,
114 
116 #endif
117 protected:
120  void PrintSelf(std::ostream & os, Indent indent) const;
122 
124  void BeforeThreadedGenerateData();
125 
127  void AfterThreadedGenerateData();
128 
130  void ThreadedGenerateData(const OutputImageRegionType &
131  outputRegionForThread,
132  ThreadIdType threadId);
133 
134 private:
135  ShiftScaleInPlaceImageFilter(const Self &); //purposely not implemented
136  void operator=(const Self &); //purposely not implemented
137 
140 
143 
146 };
147 } // end namespace itk
148 
149 #ifndef ITK_MANUAL_INSTANTIATION
150 #include "itkShiftScaleInPlaceImageFilter.hxx"
151 #endif
152 
153 #endif
154