ITK  5.4.0
Insight Toolkit
itkComplexToComplexFFTImageFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright NumFOCUS
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  * https://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 "itkMacro.h"
23 #include "ITKFFTExport.h"
24 #include <complex>
25 
26 namespace itk
27 {
34 {
35 public:
41  enum class TransformDirection : uint8_t
42  {
43  FORWARD = 1,
44  INVERSE = 2
45  };
46 };
47 // Define how to print enumeration
48 extern ITKFFT_EXPORT std::ostream &
50 
74 template <typename TInputImage, typename TOutputImage = TInputImage>
75 class ITK_TEMPLATE_EXPORT ComplexToComplexFFTImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
76 {
77 public:
78  ITK_DISALLOW_COPY_AND_MOVE(ComplexToComplexFFTImageFilter);
79 
81  using ImageType = TInputImage;
82  using InputImageType = TInputImage;
83  using OutputImageType = TOutputImage;
84 
90 
91  static constexpr unsigned int ImageDimension = InputImageType::ImageDimension;
92 
94  itkOverrideGetNameOfClassMacro(ComplexToComplexFFTImageFilter);
95 
101  itkFactoryOnlyNewMacro(Self);
102 
104 #if !defined(ITK_LEGACY_REMOVE)
105 
106  static constexpr TransformDirectionEnum FORWARD = TransformDirectionEnum::FORWARD;
107  static constexpr TransformDirectionEnum INVERSE = TransformDirectionEnum::INVERSE;
108 #endif
109 
112 
117  itkSetEnumMacro(TransformDirection, TransformDirectionEnum);
118  itkGetConstMacro(TransformDirection, TransformDirectionEnum);
121 protected:
122  ComplexToComplexFFTImageFilter() = default;
123 
124  void
125  GenerateInputRequestedRegion() override;
126 
127 private:
128  TransformDirectionEnum m_TransformDirection{ TransformDirectionEnum::FORWARD };
129 };
130 } // end namespace itk
131 
132 #ifndef ITK_MANUAL_INSTANTIATION
133 # include "itkComplexToComplexFFTImageFilter.hxx"
134 #endif
135 
136 #ifdef ITK_FFTIMAGEFILTERINIT_FACTORY_REGISTER_MANAGER
137 # include "itkFFTImageFilterInitFactoryRegisterManager.h"
138 #endif
139 
140 #endif
itk::ComplexToComplexFFTImageFilter::ImageType
TInputImage ImageType
Definition: itkComplexToComplexFFTImageFilter.h:81
TransformDirection
itk::operator<<
std::ostream & operator<<(std::ostream &os, const Array< TValue > &arr)
Definition: itkArray.h:216
itk::ComplexToComplexFFTImageFilterEnums::TransformDirection
TransformDirection
Definition: itkComplexToComplexFFTImageFilter.h:41
itk::GTest::TypedefsAndConstructors::Dimension2::SizeType
ImageBaseType::SizeType SizeType
Definition: itkGTestTypedefsAndConstructors.h:49
itk::SmartPointer< Self >
itk::ComplexToComplexFFTImageFilter
Implements an API to enable the Fourier transform or the inverse Fourier transform of images with com...
Definition: itkComplexToComplexFFTImageFilter.h:75
itk::ImageToImageFilter
Base class for filters that take an image as input and produce an image as output.
Definition: itkImageToImageFilter.h:108
itk::ImageSource
Base class for all process objects that output image data.
Definition: itkImageSource.h:67
itkMacro.h
itk::ImageToImageFilter::InputImageType
TInputImage InputImageType
Definition: itkImageToImageFilter.h:129
itkImageToImageFilter.h
itk::ComplexToComplexFFTImageFilterEnums::TransformDirection::FORWARD
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24
itk::ProcessObject
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Definition: itkProcessObject.h:139
itk::ComplexToComplexFFTImageFilterEnums
Contains enum classes used by ComplexToComplexFFTImageFilter class.
Definition: itkComplexToComplexFFTImageFilter.h:33
itk::ComplexToComplexFFTImageFilterEnums::TransformDirection::INVERSE
itk::ComplexToComplexFFTImageFilter::ImageSizeType
typename ImageType::SizeType ImageSizeType
Definition: itkComplexToComplexFFTImageFilter.h:111
itk::ImageSource::OutputImageType
TOutputImage OutputImageType
Definition: itkImageSource.h:90