ITK  4.9.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> >
51  public ImageToImageFilter< TInputImage, TOutputImage >
52 {
53 public:
55  typedef TInputImage InputImageType;
56  typedef typename InputImageType::PixelType InputPixelType;
57  typedef typename InputImageType::IndexType InputIndexType;
58  typedef typename InputImageType::SizeType InputSizeType;
59  typedef TOutputImage OutputImageType;
60  typedef typename OutputImageType::PixelType OutputPixelType;
61  typedef typename OutputImageType::IndexType OutputIndexType;
62  typedef typename OutputIndexType::SizeType OutputSizeType;
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  */
80 
81 protected:
84 
86  virtual void GenerateInputRequestedRegion();
87 
89  virtual void EnlargeOutputRequestedRegion(DataObject *output);
90 
91 private:
92  ForwardFFTImageFilter(const Self &) ITK_DELETE_FUNCTION;
93  void operator=(const Self &) ITK_DELETE_FUNCTION;
94 };
95 } // end namespace itk
96 
97 #ifndef ITK_MANUAL_INSTANTIATION
98 #ifndef itkVnlForwardFFTImageFilter_h
99 #ifndef itkVnlForwardFFTImageFilter_hxx
100 #ifndef itkFFTWForwardFFTImageFilter_h
101 #ifndef itkFFTWForwardFFTImageFilter_hxx
102 #include "itkForwardFFTImageFilter.hxx"
103 #endif
104 #endif
105 #endif
106 #endif
107 #endif
108 
109 #endif
Base class for forward Fast Fourier Transform.
InputImageType::SizeType InputSizeType
virtual SizeValueType GetSizeGreatestPrimeFactor() const
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.
virtual void EnlargeOutputRequestedRegion(DataObject *output)
virtual void GenerateInputRequestedRegion()