ITK  4.13.0
Insight Segmentation and Registration Toolkit
itkFFTPadImageFilter.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 
19 #ifndef itkFFTPadImageFilter_h
20 #define itkFFTPadImageFilter_h
21 
22 #include "itkPadImageFilterBase.h"
23 #include "itkConceptChecking.h"
25 
26 namespace itk
27 {
28 
50 template<typename TInputImage, typename TOutputImage=TInputImage>
51 class ITK_TEMPLATE_EXPORT FFTPadImageFilter :
52  public PadImageFilterBase<TInputImage, TOutputImage>
53 {
54 public:
60 
62  typedef TInputImage InputImageType;
63  typedef TOutputImage OutputImageType;
64  typedef typename InputImageType::PixelType InputImagePixelType;
65  typedef typename OutputImageType::PixelType OutputImagePixelType;
66  typedef typename InputImageType::RegionType RegionType;
69 
71  itkStaticConstMacro(InputImageDimension, unsigned int,
72  TInputImage::ImageDimension);
73  itkStaticConstMacro(OutputImageDimension, unsigned int,
74  TOutputImage::ImageDimension);
75  itkStaticConstMacro(ImageDimension, unsigned int,
76  TOutputImage::ImageDimension);
78 
80  itkNewMacro(Self);
81 
84 
95  itkGetConstMacro(SizeGreatestPrimeFactor, SizeValueType);
96  itkSetMacro(SizeGreatestPrimeFactor, SizeValueType);
98 
103 
104 protected:
106  ~FFTPadImageFilter() ITK_OVERRIDE {};
107  virtual void PrintSelf(std::ostream& os, Indent indent) const ITK_OVERRIDE;
108 
109  virtual void GenerateOutputInformation() ITK_OVERRIDE;
110 
111 
112 private:
113  ITK_DISALLOW_COPY_AND_ASSIGN(FFTPadImageFilter);
114 
115  SizeValueType m_SizeGreatestPrimeFactor;
116 
117  DefaultBoundaryConditionType m_DefaultBoundaryCondition;
118 
119 }; // end of class
120 
121 } // end namespace itk
122 
123 #ifndef ITK_MANUAL_INSTANTIATION
124 #include "itkFFTPadImageFilter.hxx"
125 #endif
126 
127 #endif
ImageBoundaryCondition< TInputImage > BoundaryConditionType
ZeroFluxNeumannBoundaryCondition< TInputImage > DefaultBoundaryConditionType
SmartPointer< const Self > ConstPointer
BoundaryConditionType * BoundaryConditionPointerType
Base class for all process objects that output image data.
InputImageType::IndexType IndexType
Increase the image size by padding. Superclass for filters that fill in extra pixels.
PadImageFilterBase< TInputImage, TOutputImage > Superclass
TInputImage::SizeValueType SizeValueType
SmartPointer< Self > Pointer
A virtual base object that defines an interface to a class of boundary condition objects for use by n...
Control indentation during Print() invocation.
Definition: itkIndent.h:49
InputImageType::PixelType InputImagePixelType
Pad an image to make it suitable for an FFT transformation.
InputImageType::SizeType SizeType
OutputImageType::PixelType OutputImagePixelType
InputImageType::RegionType RegionType