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
22#include "itkMacro.h"
23#include "ITKFFTExport.h"
24#include <complex>
25
26namespace itk
27{
34{
35public:
40 enum class TransformDirection : uint8_t
41 {
42 FORWARD = 1,
43 INVERSE = 2
44 };
45};
46// Define how to print enumeration
47extern ITKFFT_EXPORT std::ostream &
49
73template <typename TInputImage, typename TOutputImage = TInputImage>
74class ITK_TEMPLATE_EXPORT ComplexToComplexFFTImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
75{
76public:
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
101
103#if !defined(ITK_LEGACY_REMOVE)
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);
120protected:
122
123 void
125
126private:
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
Contains enum classes used by ComplexToComplexFFTImageFilter class.
Implements an API to enable the Fourier transform or the inverse Fourier transform of images with com...
void GenerateInputRequestedRegion() override
Base class for filters that take an image as input and produce an image as output.
Light weight base class for most itk classes.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
ITKCommon_EXPORT std::ostream & operator<<(std::ostream &out, typename AnatomicalOrientation::CoordinateEnum value)