ITK  5.2.0
Insight Toolkit
itkInverseFFTImageFilter.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 itkInverseFFTImageFilter_h
19 #define itkInverseFFTImageFilter_h
20 
21 #include "itkImageToImageFilter.h"
22 
23 namespace itk
24 {
48 template <typename TInputImage,
49  typename TOutputImage = Image<typename TInputImage::PixelType::value_type, TInputImage::ImageDimension>>
50 class ITK_TEMPLATE_EXPORT InverseFFTImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
51 
52 {
53 public:
54  ITK_DISALLOW_COPY_AND_MOVE(InverseFFTImageFilter);
55 
57  using InputImageType = TInputImage;
58  using InputPixelType = typename InputImageType::PixelType;
59  using OutputImageType = TOutputImage;
60  using OutputPixelType = typename OutputImageType::PixelType;
61 
66 
67  static constexpr unsigned int ImageDimension = InputImageType::ImageDimension;
68 
73  static Pointer
74  New();
75 
76  /* Return the preferred greatest prime factor supported for the input image
77  * size. Defaults to 2 as many implementations work only for sizes that are
78  * power of 2.
79  */
80  virtual SizeValueType
81  GetSizeGreatestPrimeFactor() const;
82 
83 protected:
84  InverseFFTImageFilter() = default;
85  ~InverseFFTImageFilter() override = default;
86 
88  void
89  GenerateInputRequestedRegion() override;
90 
93  void
94  EnlargeOutputRequestedRegion(DataObject * itkNotUsed(output)) override;
95 };
96 } // end namespace itk
97 
98 #ifndef ITK_MANUAL_INSTANTIATION
99 # include "itkInverseFFTImageFilter.hxx"
100 #endif
101 
102 #endif
itk::SmartPointer< Self >
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::InverseFFTImageFilter::OutputPixelType
typename OutputImageType::PixelType OutputPixelType
Definition: itkInverseFFTImageFilter.h:60
itk::InverseFFTImageFilter
Base class for inverse Fast Fourier Transform.
Definition: itkInverseFFTImageFilter.h:50
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::InverseFFTImageFilter::InputPixelType
typename InputImageType::PixelType InputPixelType
Definition: itkInverseFFTImageFilter.h:58
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