ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkInverseFFTImageFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
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 {
43 template< typename TInputImage, typename TOutputImage=Image< typename TInputImage::PixelType::value_type, TInputImage::ImageDimension> >
44 class ITK_TEMPLATE_EXPORT InverseFFTImageFilter:
45  public ImageToImageFilter< TInputImage, TOutputImage >
46 
47 {
48 public:
49  ITK_DISALLOW_COPY_AND_ASSIGN(InverseFFTImageFilter);
50 
52  using InputImageType = TInputImage;
53  using InputPixelType = typename InputImageType::PixelType;
54  using OutputImageType = TOutputImage;
55  using OutputPixelType = typename OutputImageType::PixelType;
56 
61 
62  static constexpr unsigned int ImageDimension = InputImageType::ImageDimension;
63 
68  static Pointer New();
69 
70  /* Return the prefered greatest prime factor supported for the input image
71  * size. Defaults to 2 as many implementations work only for sizes that are
72  * power of 2.
73  */
74  virtual SizeValueType GetSizeGreatestPrimeFactor() const;
75 
76 protected:
77  InverseFFTImageFilter() = default;
78  ~InverseFFTImageFilter() override = default;
79 
81  void GenerateInputRequestedRegion() override;
82 
85  void EnlargeOutputRequestedRegion( DataObject *itkNotUsed(output) ) override;
86 };
87 } // end namespace itk
88 
89 #ifndef ITK_MANUAL_INSTANTIATION
90 #include "itkInverseFFTImageFilter.hxx"
91 #endif
92 
93 #endif
typename OutputImageType::PixelType OutputPixelType
Base class for inverse Fast Fourier Transform.
unsigned long SizeValueType
Definition: itkIntTypes.h:83
typename InputImageType::PixelType InputPixelType
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Base class for all process objects that output image data.
TOutputImage OutputImageType
Base class for filters that take an image as input and produce an image as output.
Base class for all data objects in ITK.