ITK  4.3.0
Insight Segmentation and Registration Toolkit
itkVectorExpandImageFilter.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 __itkVectorExpandImageFilter_h
19 #define __itkVectorExpandImageFilter_h
20 
21 #include "itkImageToImageFilter.h"
23 
24 namespace itk
25 {
71 template< class TInputImage, class TOutputImage >
72 class ITK_EXPORT VectorExpandImageFilter:
73  public ImageToImageFilter< TInputImage, TOutputImage >
74 {
75 public:
81 
83  itkNewMacro(Self);
84 
86  typedef typename TInputImage::Pointer InputImagePointer;
87  typedef typename TOutputImage::Pointer OutputImagePointer;
88  typedef typename TOutputImage::RegionType OutputImageRegionType;
89 
92 
94  itkStaticConstMacro(ImageDimension, unsigned int,
95  TInputImage::ImageDimension);
96 
98  typedef typename Superclass::InputImageType InputImageType;
99  typedef typename Superclass::OutputImageType OutputImageType;
100 
102  typedef typename OutputImageType::PixelType OutputPixelType;
103  typedef typename OutputPixelType::ValueType OutputValueType;
104  typedef typename InputImageType::PixelType InputPixelType;
105  typedef typename InputPixelType::ValueType InputValueType;
106 
108  enum { VectorDimension = InputPixelType::Dimension };
109 
111  typedef float ExpandFactorsType;
113 
115  typedef double CoordRepType;
119 
121  itkSetObjectMacro(Interpolator, InterpolatorType);
122 
124  itkGetObjectMacro(Interpolator, InterpolatorType);
125 
128  itkSetMacro(ExpandFactors, ExpandFactorsArrayType);
129  virtual void SetExpandFactors(const float factor);
130  itkSetVectorMacro(ExpandFactors, const unsigned int, ImageDimension);
132 
134  itkGetConstReferenceMacro(ExpandFactors, ExpandFactorsArrayType);
135 
138 //TEST_RMV20100728 virtual void SetEdgePaddingValue( const OutputPixelType&
139 // value );
140 //TEST_RMV20100728
141 
143 //TEST_RMV20100728 virtual const OutputPixelType& GetEdgePaddingValue()
144 //TEST_RMV20100728 { return m_EdgePaddingValue; }
145 
152  virtual void GenerateOutputInformation();
153 
159  virtual void GenerateInputRequestedRegion();
160 
161 #ifdef ITK_USE_CONCEPT_CHECKING
162 
163  itkConceptMacro( InputHasNumericTraitsCheck,
165  itkConceptMacro( OutputHasNumericTraitsCheck,
167 
169 #endif
170 
171 protected:
172 
175  void PrintSelf(std::ostream & os, Indent indent) const;
176 
185  virtual
186  void ThreadedGenerateData(const OutputImageRegionType & outputRegionForThread,
187  ThreadIdType threadId);
188 
191  virtual void BeforeThreadedGenerateData();
192 
193 private:
194  VectorExpandImageFilter(const Self &); //purposely not implemented
195  void operator=(const Self &); //purposely not implemented
196 
199 //TEST_RMV20100728 * \warning: The following is valid only when the flag
200 //TEST_RMV20100728 * ITK_USE_CENTERED_PIXEL_COORDINATES_CONSISTENTLY is ON
201 //TEST_RMV20100728 * The output image will not contain any padding, and
202 // therefore the
203 //TEST_RMV20100728 * EdgePaddingValue will not be used.
204 //TEST_RMV20100728 *
205 //TEST_RMV20100728 OutputPixelType m_EdgePaddingValue;
206 };
207 } // end namespace itk
208 
209 #ifndef ITK_MANUAL_INSTANTIATION
210 #include "itkVectorExpandImageFilter.hxx"
211 #endif
212 
213 #endif
214