ITK  6.0.0
Insight Toolkit
itkForward1DFFTImageFilter.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 itkForward1DFFTImageFilter_h
19 #define itkForward1DFFTImageFilter_h
20 
21 #include <complex>
22 
23 #include "itkImageToImageFilter.h"
24 #include "itkMacro.h"
25 
26 namespace itk
27 {
42 template <typename TInputImage,
43  typename TOutputImage = Image<std::complex<typename TInputImage::PixelType>, TInputImage::ImageDimension>>
44 class ITK_TEMPLATE_EXPORT Forward1DFFTImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
45 {
46 public:
47  ITK_DISALLOW_COPY_AND_MOVE(Forward1DFFTImageFilter);
48 
50  using InputImageType = TInputImage;
51  using OutputImageType = TOutputImage;
53 
58 
60  static constexpr unsigned int ImageDimension = InputImageType::ImageDimension;
61 
62  itkOverrideGetNameOfClassMacro(Forward1DFFTImageFilter);
63 
69  itkFactoryOnlyNewMacro(Self);
70 
72  itkGetConstMacro(Direction, unsigned int);
73 
75  itkSetClampMacro(Direction, unsigned int, 0, InputImageType::ImageDimension - 1);
76 
78  virtual SizeValueType
80  {
81  return 2;
82  }
83 
84 protected:
86  ~Forward1DFFTImageFilter() override = default;
87 
88  void
89  PrintSelf(std::ostream & os, Indent indent) const override;
90 
91  void
92  GenerateInputRequestedRegion() override;
93  void
94  EnlargeOutputRequestedRegion(DataObject * output) override;
95 
96 private:
99  unsigned int m_Direction{ 0 };
100 };
101 } // namespace itk
102 
103 #ifndef ITK_MANUAL_INSTANTIATION
104 # include "itkForward1DFFTImageFilter.hxx"
105 #endif
106 
107 #ifdef ITK_FFTIMAGEFILTERINIT_FACTORY_REGISTER_MANAGER
108 # include "itkFFTImageFilterInitFactoryRegisterManager.h"
109 #endif
110 
111 #endif // itkForward1DFFTImageFilter_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
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::Forward1DFFTImageFilter
Perform the Fast Fourier Transform, in the forward direction, with real inputs, but only along one di...
Definition: itkForward1DFFTImageFilter.h:44
itk::Forward1DFFTImageFilter::GetSizeGreatestPrimeFactor
virtual SizeValueType GetSizeGreatestPrimeFactor() const
Definition: itkForward1DFFTImageFilter.h:79
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::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