ITK  4.13.0
Insight Segmentation and Registration Toolkit
itkForwardFFTImageFilter.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 itkForwardFFTImageFilter_h
19 #define itkForwardFFTImageFilter_h
20 
21 #include "itkImageToImageFilter.h"
22 
23 namespace itk
24 {
49 template< typename TInputImage, typename TOutputImage=Image< std::complex<typename TInputImage::PixelType>, TInputImage::ImageDimension> >
50 class ITK_TEMPLATE_EXPORT ForwardFFTImageFilter:
51  public ImageToImageFilter< TInputImage, TOutputImage >
52 {
53 public:
55  typedef TInputImage InputImageType;
56  typedef typename InputImageType::PixelType InputPixelType;
59  typedef TOutputImage OutputImageType;
60  typedef typename OutputImageType::PixelType OutputPixelType;
63 
68 
73  static Pointer New();
74 
75  /* Return the prefered greatest prime factor supported for the input image
76  * size. Defaults to 2 as many implementations work only for sizes that are
77  * power of 2.
78  */
79  virtual SizeValueType GetSizeGreatestPrimeFactor() const;
80 
81 protected:
84 
86  virtual void GenerateInputRequestedRegion();
87 
89  virtual void EnlargeOutputRequestedRegion(DataObject *output);
90 
91 private:
92  ITK_DISALLOW_COPY_AND_ASSIGN(ForwardFFTImageFilter);
93 };
94 } // end namespace itk
95 
96 #ifndef ITK_MANUAL_INSTANTIATION
97 #ifndef itkVnlForwardFFTImageFilter_h
98 #ifndef itkVnlForwardFFTImageFilter_hxx
99 #ifndef itkFFTWForwardFFTImageFilter_h
100 #ifndef itkFFTWForwardFFTImageFilter_hxx
101 #include "itkForwardFFTImageFilter.hxx"
102 #endif
103 #endif
104 #endif
105 #endif
106 #endif
107 
108 #endif
Base class for forward Fast Fourier Transform.
InputImageType::SizeType InputSizeType
OutputImageType::IndexType OutputIndexType
unsigned long SizeValueType
Definition: itkIntTypes.h:143
OutputIndexType::SizeType OutputSizeType
OutputImageType::PixelType OutputPixelType
InputImageType::PixelType InputPixelType
SmartPointer< const Self > ConstPointer
Base class for filters that take an image as input and produce an image as output.
InputImageType::IndexType InputIndexType
ImageToImageFilter< InputImageType, OutputImageType > Superclass
Base class for all data objects in ITK.