ITK  6.0.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  * 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 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 
61  itkOverrideGetNameOfClassMacro(ComplexToComplex1DFFTImageFilter);
62 
68  itkFactoryOnlyNewMacro(Self);
69 
72  {
73  DIRECT = 1,
74  INVERSE
75  };
76 
82  itkSetMacro(TransformDirection, TransformDirectionType);
83  itkGetConstMacro(TransformDirection, TransformDirectionType);
87  itkGetConstMacro(Direction, unsigned int);
88 
90  itkSetClampMacro(Direction, unsigned int, 0, InputImageType::ImageDimension - 1);
91 
93  virtual SizeValueType
95  {
96  return 2;
97  }
98 
99 protected:
101  ~ComplexToComplex1DFFTImageFilter() override = default;
102 
103  void
104  PrintSelf(std::ostream & os, Indent indent) const override;
105 
106  void
107  GenerateInputRequestedRegion() override;
108  void
109  EnlargeOutputRequestedRegion(DataObject * output) override;
110 
113  unsigned int m_Direction{ 0 };
114 
116  TransformDirectionType m_TransformDirection{ DIRECT };
117 
118 private:
119 };
120 
121 } // namespace itk
122 
123 #ifndef ITK_MANUAL_INSTANTIATION
124 # include "itkComplexToComplex1DFFTImageFilter.hxx"
125 #endif
126 
127 #ifdef ITK_FFTIMAGEFILTERINIT_FACTORY_REGISTER_MANAGER
128 # include "itkFFTImageFilterInitFactoryRegisterManager.h"
129 #endif
130 
131 #endif // itkComplexToComplex1DFFTImageFilter_h
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:94
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::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: 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::ComplexToComplex1DFFTImageFilter::TransformDirectionType
TransformDirectionType
Definition: itkComplexToComplex1DFFTImageFilter.h:71
itk::SizeValueType
unsigned long SizeValueType
Definition: itkIntTypes.h:86
itk::ImageSource::OutputImageType
TOutputImage OutputImageType
Definition: itkImageSource.h:90
itk::DataObject
Base class for all data objects in ITK.
Definition: itkDataObject.h:293