ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkForwardFFTImageFilter.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 itkForwardFFTImageFilter_h
19 #define itkForwardFFTImageFilter_h
20 
21 #include "itkImageToImageFilter.h"
22 
23 namespace itk
24 {
55 template< typename TInputImage, typename TOutputImage=Image< std::complex<typename TInputImage::PixelType>, TInputImage::ImageDimension> >
56 class ITK_TEMPLATE_EXPORT ForwardFFTImageFilter:
57  public ImageToImageFilter< TInputImage, TOutputImage >
58 {
59 public:
60  ITK_DISALLOW_COPY_AND_ASSIGN(ForwardFFTImageFilter);
61 
63  using InputImageType = TInputImage;
64  using InputPixelType = typename InputImageType::PixelType;
67  using OutputImageType = TOutputImage;
68  using OutputPixelType = typename OutputImageType::PixelType;
71 
76 
81  static Pointer New();
82 
83  /* Return the prefered greatest prime factor supported for the input image
84  * size. Defaults to 2 as many implementations work only for sizes that are
85  * power of 2.
86  */
87  virtual SizeValueType GetSizeGreatestPrimeFactor() const;
88 
89 protected:
90  ForwardFFTImageFilter() = default;
91  ~ForwardFFTImageFilter() override = default;
92 
94  void GenerateInputRequestedRegion() override;
95 
97  void EnlargeOutputRequestedRegion(DataObject *output) override;
98 };
99 } // end namespace itk
100 
101 #ifndef ITK_MANUAL_INSTANTIATION
102 #include "itkForwardFFTImageFilter.hxx"
103 #endif
104 
105 #endif
Base class for forward Fast Fourier Transform.
typename InputImageType::SizeType InputSizeType
typename OutputImageType::PixelType OutputPixelType
unsigned long SizeValueType
Definition: itkIntTypes.h:83
typename InputImageType::IndexType InputIndexType
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
typename OutputIndexType::SizeType OutputSizeType
Base class for filters that take an image as input and produce an image as output.
typename OutputImageType::IndexType OutputIndexType
Base class for all data objects in ITK.