ITK  4.4.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  itkGetModifiableObjectMacro(Interpolator, InterpolatorType);
108 
111 
114  itkSetMacro(ExpandFactors, ExpandFactorsType);
115  virtual void SetExpandFactors(const unsigned int factor);
117 
119  itkGetConstReferenceMacro(ExpandFactors, ExpandFactorsType);
120 
122 //TEST_RMV20100728 itkSetMacro( EdgePaddingValue, OutputPixelType );
123 //TEST_RMV20100728
124 
126 //TEST_RMV20100728 itkGetConstMacro( EdgePaddingValue, OutputPixelType );
127 
134  virtual void GenerateOutputInformation();
135 
141  virtual void GenerateInputRequestedRegion();
142 
143 #ifdef ITK_USE_CONCEPT_CHECKING
144 
145  itkConceptMacro( InputHasNumericTraitsCheck,
147  itkConceptMacro( OutputHasNumericTraitsCheck,
149 
151 #endif
152 
153 protected:
156  void PrintSelf(std::ostream & os, Indent indent) const;
157 
167  virtual
168  void ThreadedGenerateData(const OutputImageRegionType & outputRegionForThread,
169  ThreadIdType threadId);
170 
173  virtual void BeforeThreadedGenerateData();
174 
175 private:
176  ExpandImageFilter(const Self &); //purposely not implemented
177  void operator=(const Self &); //purposely not implemented
178 
181 //TEST_RMV20100728 * \warning: The following is valid only when the flag
182 //TEST_RMV20100728 * ITK_USE_CENTERED_PIXEL_COORDINATES_CONSISTENTLY is ON
183 //TEST_RMV20100728 * The output image will not contain any padding, and
184 // therefore the
185 //TEST_RMV20100728 * EdgePaddingValue will not be used.
186 //TEST_RMV20100728 *
187 //TEST_RMV20100728 OutputPixelType m_EdgePaddingValue;
188 };
189 } // end namespace itk
190 
191 #ifndef ITK_MANUAL_INSTANTIATION
192 #include "itkExpandImageFilter.hxx"
193 #endif
194 
195 #endif
196