ITK  5.3.0
Insight Toolkit
itkComplexToComplex1DFFTImageFilter.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  * 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 itkComplexToComplex1DFFTImageFilter_h
19 #define itkComplexToComplex1DFFTImageFilter_h
20 
21 #include <complex>
22 
23 #include "itkImage.h"
24 #include "itkImageToImageFilter.h"
25 #include "itkMacro.h"
26 
27 namespace itk
28 {
42 template <typename TInputImage, typename TOutputImage = TInputImage>
43 class ITK_TEMPLATE_EXPORT ComplexToComplex1DFFTImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
44 {
45 public:
46  ITK_DISALLOW_COPY_AND_MOVE(ComplexToComplex1DFFTImageFilter);
47 
49  using InputImageType = TInputImage;
50  using OutputImageType = TOutputImage;
52 
57 
59  static constexpr unsigned int ImageDimension = InputImageType::ImageDimension;
60 
62 
68  itkFactoryOnlyNewMacro(Self);
69 
71  using TransformDirectionType = enum { DIRECT = 1, INVERSE };
72 
78  itkSetMacro(TransformDirection, TransformDirectionType);
79  itkGetConstMacro(TransformDirection, TransformDirectionType);
81 
83  itkGetConstMacro(Direction, unsigned int);
84 
86  itkSetClampMacro(Direction, unsigned int, 0, InputImageType::ImageDimension - 1);
87 
89  virtual SizeValueType
91  {
92  return 2;
93  }
94 
95 protected:
97  ~ComplexToComplex1DFFTImageFilter() override = default;
98 
99  void
100  PrintSelf(std::ostream & os, Indent indent) const override;
101 
102  void
103  GenerateInputRequestedRegion() override;
104  void
105  EnlargeOutputRequestedRegion(DataObject * output) override;
106 
109  unsigned int m_Direction;
110 
113 
114 private:
115 };
116 
117 } // namespace itk
118 
119 #ifndef ITK_MANUAL_INSTANTIATION
120 # include "itkComplexToComplex1DFFTImageFilter.hxx"
121 #endif
122 
123 #ifdef ITK_FFT_FACTORY_REGISTER_MANAGER
124 # include "itkFFTImageFilterFactoryRegisterManager.h"
125 #endif
126 
127 #endif // itkComplexToComplex1DFFTImageFilter_h
TransformDirection
itkImage.h
itk::SmartPointer< Self >
itk::Indent
Control indentation during Print() invocation.
Definition: itkIndent.h:49
itk::ComplexToComplex1DFFTImageFilter::GetSizeGreatestPrimeFactor
virtual SizeValueType GetSizeGreatestPrimeFactor() const
Definition: itkComplexToComplex1DFFTImageFilter.h:90
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::ComplexToComplex1DFFTImageFilter::m_TransformDirection
TransformDirectionType m_TransformDirection
Definition: itkComplexToComplex1DFFTImageFilter.h:112
itkMacro.h
itk::GTest::TypedefsAndConstructors::Dimension2::RegionType
ImageBaseType::RegionType RegionType
Definition: itkGTestTypedefsAndConstructors.h:54
itk::ComplexToComplex1DFFTImageFilter
Perform the Fast Fourier Transform, complex input to complex output, but only along one dimension.
Definition: itkComplexToComplex1DFFTImageFilter.h:43
itk::ImageToImageFilter::InputImageType
TInputImage InputImageType
Definition: itkImageToImageFilter.h:129
itkImageToImageFilter.h
itk::ImageSource::OutputImageRegionType
typename OutputImageType::RegionType OutputImageRegionType
Definition: itkImageSource.h:92
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24
itk::ComplexToComplex1DFFTImageFilter::m_Direction
unsigned int m_Direction
Definition: itkComplexToComplex1DFFTImageFilter.h:109
itk::ProcessObject
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Definition: itkProcessObject.h:138
itk::ComplexToComplex1DFFTImageFilter::TransformDirectionType
enum { DIRECT=1, INVERSE } TransformDirectionType
Definition: itkComplexToComplex1DFFTImageFilter.h:71
itk::SizeValueType
unsigned long SizeValueType
Definition: itkIntTypes.h:83
itk::ImageSource::OutputImageType
TOutputImage OutputImageType
Definition: itkImageSource.h:90
itk::DataObject
Base class for all data objects in ITK.
Definition: itkDataObject.h:293