ITK  4.13.0
Insight Segmentation and Registration Toolkit
itkInverseFFTImageFilter.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 itkInverseFFTImageFilter_h
19 #define itkInverseFFTImageFilter_h
20 
21 #include "itkImageToImageFilter.h"
22 
23 namespace itk
24 {
43 template< typename TInputImage, typename TOutputImage=Image< typename TInputImage::PixelType::value_type, TInputImage::ImageDimension> >
44 class ITK_TEMPLATE_EXPORT InverseFFTImageFilter:
45  public ImageToImageFilter< TInputImage, TOutputImage >
46 
47 {
48 public:
50  typedef TInputImage InputImageType;
51  typedef typename InputImageType::PixelType InputPixelType;
52  typedef TOutputImage OutputImageType;
53  typedef typename OutputImageType::PixelType OutputPixelType;
54 
59 
60  itkStaticConstMacro(ImageDimension, unsigned int,
61  InputImageType::ImageDimension);
62 
67  static Pointer New();
68 
69  /* Return the prefered greatest prime factor supported for the input image
70  * size. Defaults to 2 as many implementations work only for sizes that are
71  * power of 2.
72  */
73  virtual SizeValueType GetSizeGreatestPrimeFactor() const;
74 
75 protected:
78 
80  virtual void GenerateInputRequestedRegion();
81 
84  void EnlargeOutputRequestedRegion( DataObject *itkNotUsed(output) );
85 
86 private:
87  ITK_DISALLOW_COPY_AND_ASSIGN(InverseFFTImageFilter);
88 };
89 } // end namespace itk
90 
91 #ifndef ITK_MANUAL_INSTANTIATION
92 #ifndef itkVnlInverseFFTImageFilter_h
93 #ifndef itkVnlInverseFFTImageFilter_hxx
94 #ifndef itkFFTWInverseFFTImageFilter_h
95 #ifndef itkFFTWInverseFFTImageFilter_hxx
96 #include "itkInverseFFTImageFilter.hxx"
97 #endif
98 #endif
99 #endif
100 #endif
101 #endif
102 
103 #endif
Base class for inverse Fast Fourier Transform.
InputImageType::PixelType InputPixelType
OutputImageType::PixelType OutputPixelType
unsigned long SizeValueType
Definition: itkIntTypes.h:143
SmartPointer< const Self > ConstPointer
Base class for filters that take an image as input and produce an image as output.
ImageToImageFilter< InputImageType, OutputImageType > Superclass
Base class for all data objects in ITK.