ITK  6.0.0
Insight Toolkit
itkInverse1DFFTImageFilter.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 itkInverse1DFFTImageFilter_h
19 #define itkInverse1DFFTImageFilter_h
20 
21 #include <complex>
22 
23 #include "itkImageToImageFilter.h"
24 #include "itkMacro.h"
25 
26 namespace itk
27 {
35 template <typename TInputImage,
36  typename TOutputImage =
38 class ITK_TEMPLATE_EXPORT Inverse1DFFTImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
39 {
40 public:
41  ITK_DISALLOW_COPY_AND_MOVE(Inverse1DFFTImageFilter);
42 
44  using InputImageType = TInputImage;
45  using OutputImageType = TOutputImage;
47 
52 
54  static constexpr unsigned int ImageDimension = InputImageType::ImageDimension;
55 
56  itkOverrideGetNameOfClassMacro(Inverse1DFFTImageFilter);
57 
63  itkFactoryOnlyNewMacro(Self);
64 
66  itkGetConstMacro(Direction, unsigned int);
67 
69  itkSetClampMacro(Direction, unsigned int, 0, InputImageType::ImageDimension - 1);
70 
72  virtual SizeValueType
74  {
75  return 2;
76  }
77 
78 protected:
80  ~Inverse1DFFTImageFilter() override = default;
81 
82  void
83  PrintSelf(std::ostream & os, Indent indent) const override;
84 
85  void
86  GenerateInputRequestedRegion() override;
87  void
88  EnlargeOutputRequestedRegion(DataObject * out) override;
89 
92  unsigned int m_Direction{ 0 };
93 
94 private:
95 };
96 } // namespace itk
97 
98 #ifndef ITK_MANUAL_INSTANTIATION
99 # include "itkInverse1DFFTImageFilter.hxx"
100 #endif
101 
102 #ifdef ITK_FFTIMAGEFILTERINIT_FACTORY_REGISTER_MANAGER
103 # include "itkFFTImageFilterInitFactoryRegisterManager.h"
104 #endif
105 
106 #endif // itkInverse1DFFTImageFilter_h
itk::SmartPointer< Self >
itk::Indent
Control indentation during Print() invocation.
Definition: itkIndent.h:49
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::Image::ValueType
TPixel ValueType
Definition: itkImage.h:111
itkMacro.h
itk::GTest::TypedefsAndConstructors::Dimension2::RegionType
ImageBaseType::RegionType RegionType
Definition: itkGTestTypedefsAndConstructors.h:54
itk::ImageToImageFilter::InputImageType
TInputImage InputImageType
Definition: itkImageToImageFilter.h:129
itkImageToImageFilter.h
itk::ImageSource::OutputImageRegionType
typename OutputImageType::RegionType OutputImageRegionType
Definition: itkImageSource.h:92
itk::Inverse1DFFTImageFilter
Perform the Fast Fourier Transform, in the reverse direction, with real output, but only along one di...
Definition: itkInverse1DFFTImageFilter.h:38
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnatomicalOrientation.h:29
itk::Inverse1DFFTImageFilter::GetSizeGreatestPrimeFactor
virtual SizeValueType GetSizeGreatestPrimeFactor() const
Definition: itkInverse1DFFTImageFilter.h:73
itk::ProcessObject
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Definition: itkProcessObject.h:139
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