ITK  4.9.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> >
55  public ImageToImageFilter< TInputImage, TOutputImage >
56 {
57 public:
59  typedef TInputImage InputImageType;
60  typedef typename InputImageType::PixelType InputPixelType;
61  typedef typename InputImageType::IndexType InputIndexType;
62  typedef typename InputImageType::SizeType InputSizeType;
63  typedef TOutputImage OutputImageType;
64  typedef typename OutputImageType::PixelType OutputPixelType;
65  typedef typename OutputImageType::IndexType OutputIndexType;
66  typedef typename OutputIndexType::SizeType OutputSizeType;
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  */
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  RealToHalfHermitianForwardFFTImageFilter(const Self &) ITK_DELETE_FUNCTION;
107  void operator=(const Self &) ITK_DELETE_FUNCTION;
108 };
109 } // end namespace itk
110 
111 #ifndef ITK_MANUAL_INSTANTIATION
112 #ifndef itkVnlRealToHalfHermitianForwardFFTImageFilter_h
113 #ifndef itkVnlRealToHalfHermitianForwardFFTImageFilter_hxx
114 #ifndef itkFFTWRealToHalfHermitianForwardFFTImageFilter_h
115 #ifndef itkFFTWRealToHalfHermitianForwardFFTImageFilter_hxx
116 #include "itkRealToHalfHermitianForwardFFTImageFilter.hxx"
117 #endif
118 #endif
119 #endif
120 #endif
121 #endif
122 
123 #endif
unsigned long SizeValueType
Definition: itkIntTypes.h:143
virtual SizeValueType GetSizeGreatestPrimeFactor() const
virtual void EnlargeOutputRequestedRegion(DataObject *output)
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