ITK  4.9.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>
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;
67  typedef typename InputImageType::IndexType IndexType;
68  typedef typename InputImageType::SizeType SizeType;
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:
107  virtual void PrintSelf(std::ostream& os, Indent indent) const ITK_OVERRIDE;
108 
109  virtual void GenerateOutputInformation() ITK_OVERRIDE;
110 
111 
112 private:
113  FFTPadImageFilter(const Self&) ITK_DELETE_FUNCTION;
114  void operator=(const Self&) ITK_DELETE_FUNCTION;
115 
117 
119 
120 }; // end of class
121 
122 } // end namespace itk
123 
124 #ifndef ITK_MANUAL_INSTANTIATION
125 #include "itkFFTPadImageFilter.hxx"
126 #endif
127 
128 #endif
ImageBoundaryCondition< TInputImage > BoundaryConditionType
virtual void GenerateOutputInformation() override
ZeroFluxNeumannBoundaryCondition< TInputImage > DefaultBoundaryConditionType
static const unsigned int InputImageDimension
virtual void PrintSelf(std::ostream &os, Indent indent) const override
static const unsigned int OutputImageDimension
SmartPointer< const Self > ConstPointer
BoundaryConditionType * BoundaryConditionPointerType
SizeValueType m_SizeGreatestPrimeFactor
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...
DefaultBoundaryConditionType m_DefaultBoundaryCondition
static const unsigned int ImageDimension
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