ITK  6.0.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:
40  enum class TransformDirection : uint8_t
41  {
42  FORWARD = 1,
43  INVERSE = 2
44  };
45 };
46 // Define how to print enumeration
47 extern ITKFFT_EXPORT std::ostream &
49 
73 template <typename TInputImage, typename TOutputImage = TInputImage>
74 class ITK_TEMPLATE_EXPORT ComplexToComplexFFTImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
75 {
76 public:
77  ITK_DISALLOW_COPY_AND_MOVE(ComplexToComplexFFTImageFilter);
78 
80  using ImageType = TInputImage;
81  using InputImageType = TInputImage;
82  using OutputImageType = TOutputImage;
83 
89 
90  static constexpr unsigned int ImageDimension = InputImageType::ImageDimension;
91 
93  itkOverrideGetNameOfClassMacro(ComplexToComplexFFTImageFilter);
94 
100  itkFactoryOnlyNewMacro(Self);
101 
103 #if !defined(ITK_LEGACY_REMOVE)
104 
105  static constexpr TransformDirectionEnum FORWARD = TransformDirectionEnum::FORWARD;
106  static constexpr TransformDirectionEnum INVERSE = TransformDirectionEnum::INVERSE;
107 #endif
108 
111 
116  itkSetEnumMacro(TransformDirection, TransformDirectionEnum);
117  itkGetConstMacro(TransformDirection, TransformDirectionEnum);
120 protected:
121  ComplexToComplexFFTImageFilter() = default;
122 
123  void
124  GenerateInputRequestedRegion() override;
125 
126 private:
127  TransformDirectionEnum m_TransformDirection{ TransformDirectionEnum::FORWARD };
128 };
129 } // end namespace itk
130 
131 #ifndef ITK_MANUAL_INSTANTIATION
132 # include "itkComplexToComplexFFTImageFilter.hxx"
133 #endif
134 
135 #ifdef ITK_FFTIMAGEFILTERINIT_FACTORY_REGISTER_MANAGER
136 # include "itkFFTImageFilterInitFactoryRegisterManager.h"
137 #endif
138 
139 #endif
itk::ComplexToComplexFFTImageFilter::ImageType
TInputImage ImageType
Definition: itkComplexToComplexFFTImageFilter.h:80
itk::GTest::TypedefsAndConstructors::Dimension2::SizeType
ImageBaseType::SizeType SizeType
Definition: itkGTestTypedefsAndConstructors.h:49
itk::operator<<
ITKCommon_EXPORT std::ostream & operator<<(std::ostream &out, typename AnatomicalOrientation::CoordinateEnum value)
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:74
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
itk::ComplexToComplexFFTImageFilterEnums::TransformDirection
TransformDirection
Definition: itkComplexToComplexFFTImageFilter.h:40
itkMacro.h
itk::ImageToImageFilter::InputImageType
TInputImage InputImageType
Definition: itkImageToImageFilter.h:129
itkImageToImageFilter.h
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnatomicalOrientation.h:29
itk::ProcessObject
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Definition: itkProcessObject.h:139
itk::ComplexToComplexFFTImageFilterEnums::TransformDirection::INVERSE
itk::ComplexToComplexFFTImageFilterEnums
Contains enum classes used by ComplexToComplexFFTImageFilter class.
Definition: itkComplexToComplexFFTImageFilter.h:33
itk::ComplexToComplexFFTImageFilterEnums::TransformDirection::FORWARD
itk::ComplexToComplexFFTImageFilter::ImageSizeType
typename ImageType::SizeType ImageSizeType
Definition: itkComplexToComplexFFTImageFilter.h:110
itk::ImageSource::OutputImageType
TOutputImage OutputImageType
Definition: itkImageSource.h:90