ITK  5.2.0
Insight Toolkit
itkForwardFFTImageFilter.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 itkForwardFFTImageFilter_h
19 #define itkForwardFFTImageFilter_h
20 
21 #include "itkImageToImageFilter.h"
22 
23 namespace itk
24 {
60 template <typename TInputImage,
61  typename TOutputImage = Image<std::complex<typename TInputImage::PixelType>, TInputImage::ImageDimension>>
62 class ITK_TEMPLATE_EXPORT ForwardFFTImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
63 {
64 public:
65  ITK_DISALLOW_COPY_AND_MOVE(ForwardFFTImageFilter);
67 
69  using InputImageType = TInputImage;
70  using InputPixelType = typename InputImageType::PixelType;
73  using OutputImageType = TOutputImage;
74  using OutputPixelType = typename OutputImageType::PixelType;
77 
82 
87  static Pointer
88  New();
89 
90  /* Return the preferred greatest prime factor supported for the input image
91  * size. Defaults to 2 as many implementations work only for sizes that are
92  * power of 2.
93  */
94  virtual SizeValueType
95  GetSizeGreatestPrimeFactor() const;
96 
97 protected:
98  ForwardFFTImageFilter() = default;
99  ~ForwardFFTImageFilter() override = default;
100 
102  void
103  GenerateInputRequestedRegion() override;
104 
106  void
107  EnlargeOutputRequestedRegion(DataObject * output) override;
108 };
109 } // end namespace itk
110 
111 #ifndef ITK_MANUAL_INSTANTIATION
112 # include "itkForwardFFTImageFilter.hxx"
113 #endif
114 
115 #endif
itk::ForwardFFTImageFilter::OutputSizeType
typename OutputIndexType::SizeType OutputSizeType
Definition: itkForwardFFTImageFilter.h:76
itk::GTest::TypedefsAndConstructors::Dimension2::SizeType
ImageBaseType::SizeType SizeType
Definition: itkGTestTypedefsAndConstructors.h:49
itk::SmartPointer< Self >
itk::ForwardFFTImageFilter
Base class for forward Fast Fourier Transform.
Definition: itkForwardFFTImageFilter.h:62
itk::ForwardFFTImageFilter::InputSizeType
typename InputImageType::SizeType InputSizeType
Definition: itkForwardFFTImageFilter.h:72
itk::ForwardFFTImageFilter::OutputPixelType
typename OutputImageType::PixelType OutputPixelType
Definition: itkForwardFFTImageFilter.h:74
itk::GTest::TypedefsAndConstructors::Dimension2::IndexType
ImageBaseType::IndexType IndexType
Definition: itkGTestTypedefsAndConstructors.h:50
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::ForwardFFTImageFilter::OutputIndexType
typename OutputImageType::IndexType OutputIndexType
Definition: itkForwardFFTImageFilter.h:75
itk::ForwardFFTImageFilter::InputIndexType
typename InputImageType::IndexType InputIndexType
Definition: itkForwardFFTImageFilter.h:71
itk::ForwardFFTImageFilter::InputPixelType
typename InputImageType::PixelType InputPixelType
Definition: itkForwardFFTImageFilter.h:70
itk::ImageToImageFilter::InputImageType
TInputImage InputImageType
Definition: itkImageToImageFilter.h:129
itkImageToImageFilter.h
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24
itk::ProcessObject
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Definition: itkProcessObject.h:138
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