ITK  4.13.0
Insight Segmentation and Registration Toolkit
itkRealToHalfHermitianForwardFFTImageFilter.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 itkRealToHalfHermitianForwardFFTImageFilter_h
19 #define itkRealToHalfHermitianForwardFFTImageFilter_h
20 
21 #include "itkImageToImageFilter.h"
23 
24 namespace itk
25 {
53 template< typename TInputImage, typename TOutputImage=Image< std::complex<typename TInputImage::PixelType>, TInputImage::ImageDimension> >
54 class ITK_TEMPLATE_EXPORT RealToHalfHermitianForwardFFTImageFilter:
55  public ImageToImageFilter< TInputImage, TOutputImage >
56 {
57 public:
59  typedef TInputImage InputImageType;
60  typedef typename InputImageType::PixelType InputPixelType;
63  typedef TOutputImage OutputImageType;
64  typedef typename OutputImageType::PixelType OutputPixelType;
67 
72 
77  static Pointer New();
78 
79  /* Return the prefered greatest prime factor supported for the input image
80  * size. Defaults to 2 as many implementations work only for sizes that are
81  * power of 2.
82  */
83  virtual SizeValueType GetSizeGreatestPrimeFactor() const;
84 
87  itkGetDecoratedOutputMacro(ActualXDimensionIsOdd, bool);
88 
89 protected:
92 
95  virtual void GenerateOutputInformation();
96 
98  virtual void GenerateInputRequestedRegion();
99 
101  virtual void EnlargeOutputRequestedRegion(DataObject *output);
102 
103  itkSetDecoratedOutputMacro(ActualXDimensionIsOdd, bool);
104 
105 private:
106  ITK_DISALLOW_COPY_AND_ASSIGN(RealToHalfHermitianForwardFFTImageFilter);
107 };
108 } // end namespace itk
109 
110 #ifndef ITK_MANUAL_INSTANTIATION
111 #ifndef itkVnlRealToHalfHermitianForwardFFTImageFilter_h
112 #ifndef itkVnlRealToHalfHermitianForwardFFTImageFilter_hxx
113 #ifndef itkFFTWRealToHalfHermitianForwardFFTImageFilter_h
114 #ifndef itkFFTWRealToHalfHermitianForwardFFTImageFilter_hxx
115 #include "itkRealToHalfHermitianForwardFFTImageFilter.hxx"
116 #endif
117 #endif
118 #endif
119 #endif
120 #endif
121 
122 #endif
unsigned long SizeValueType
Definition: itkIntTypes.h:143
Base class for filters that take an image as input and produce an image as output.
Base class for specialized real-to-complex forward Fast Fourier Transform.
Base class for all data objects in ITK.
ImageToImageFilter< InputImageType, OutputImageType > Superclass