ITK  4.3.0
Insight Segmentation and Registration Toolkit
itkExpandImageFilter.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 __itkExpandImageFilter_h
19 #define __itkExpandImageFilter_h
20 
21 #include "itkImageToImageFilter.h"
23 
24 namespace itk
25 {
66 template< class TInputImage, class TOutputImage >
67 class ITK_EXPORT ExpandImageFilter:
68  public ImageToImageFilter< TInputImage, TOutputImage >
69 {
70 public:
76 
78  itkNewMacro(Self);
79 
82 
84  typedef typename TOutputImage::RegionType OutputImageRegionType;
85 
87  itkStaticConstMacro(ImageDimension, unsigned int,
88  TInputImage::ImageDimension);
89 
91  typedef typename Superclass::InputImageType InputImageType;
92  typedef typename Superclass::OutputImageType OutputImageType;
93  typedef typename OutputImageType::PixelType OutputPixelType;
94  typedef typename InputImageType::Pointer InputImagePointer;
95  typedef typename OutputImageType::Pointer OutputImagePointer;
96 
98  typedef double CoordRepType;
103 
105  itkSetObjectMacro(Interpolator, InterpolatorType);
106 
108  itkGetObjectMacro(Interpolator, InterpolatorType);
109 
112 
115  itkSetMacro(ExpandFactors, ExpandFactorsType);
116  virtual void SetExpandFactors(const unsigned int factor);
118 
120  itkGetConstReferenceMacro(ExpandFactors, ExpandFactorsType);
121 
123 //TEST_RMV20100728 itkSetMacro( EdgePaddingValue, OutputPixelType );
124 //TEST_RMV20100728
125 
127 //TEST_RMV20100728 itkGetConstMacro( EdgePaddingValue, OutputPixelType );
128 
135  virtual void GenerateOutputInformation();
136 
142  virtual void GenerateInputRequestedRegion();
143 
144 #ifdef ITK_USE_CONCEPT_CHECKING
145 
146  itkConceptMacro( InputHasNumericTraitsCheck,
148  itkConceptMacro( OutputHasNumericTraitsCheck,
150 
152 #endif
153 
154 protected:
157  void PrintSelf(std::ostream & os, Indent indent) const;
158 
168  virtual
169  void ThreadedGenerateData(const OutputImageRegionType & outputRegionForThread,
170  ThreadIdType threadId);
171 
174  virtual void BeforeThreadedGenerateData();
175 
176 private:
177  ExpandImageFilter(const Self &); //purposely not implemented
178  void operator=(const Self &); //purposely not implemented
179 
182 //TEST_RMV20100728 * \warning: The following is valid only when the flag
183 //TEST_RMV20100728 * ITK_USE_CENTERED_PIXEL_COORDINATES_CONSISTENTLY is ON
184 //TEST_RMV20100728 * The output image will not contain any padding, and
185 // therefore the
186 //TEST_RMV20100728 * EdgePaddingValue will not be used.
187 //TEST_RMV20100728 *
188 //TEST_RMV20100728 OutputPixelType m_EdgePaddingValue;
189 };
190 } // end namespace itk
191 
192 #ifndef ITK_MANUAL_INSTANTIATION
193 #include "itkExpandImageFilter.hxx"
194 #endif
195 
196 #endif
197