ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkComplexToComplexFFTImageFilter.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 itkComplexToComplexFFTImageFilter_h
19 #define itkComplexToComplexFFTImageFilter_h
20 
21 #include "itkImageToImageFilter.h"
22 #include <complex>
23 
24 namespace itk
25 {
26 
51 template< typename TImage >
52 class ITK_TEMPLATE_EXPORT ComplexToComplexFFTImageFilter:
53  public ImageToImageFilter< TImage, TImage >
54 {
55 public:
56  ITK_DISALLOW_COPY_AND_ASSIGN(ComplexToComplexFFTImageFilter);
57 
59  using ImageType = TImage;
60  using InputImageType = TImage;
61  using OutputImageType = TImage;
62 
68 
69  static constexpr unsigned int ImageDimension = InputImageType::ImageDimension;
70 
73 
79  static Pointer New();
80 
83  FORWARD = 1,
84  INVERSE = 2
85  };
86 
89 
94  itkSetMacro(TransformDirection, TransformDirectionType);
95  itkGetConstMacro(TransformDirection, TransformDirectionType);
97 
98 protected:
100  m_TransformDirection( FORWARD ) {}
101 
102  void GenerateInputRequestedRegion() override;
103 
104 private:
106 };
107 
108 } // end namespace itk
109 
110 #ifndef ITK_MANUAL_INSTANTIATION
111 #include "itkComplexToComplexFFTImageFilter.hxx"
112 #endif
113 
114 #endif
Light weight base class for most itk classes.
Implements an API to enable the Fourier transform or the inverse Fourier transform of images with com...
Base class for filters that take an image as input and produce an image as output.