ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkRealToHalfHermitianForwardFFTImageFilter.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 itkRealToHalfHermitianForwardFFTImageFilter_h
19 #define itkRealToHalfHermitianForwardFFTImageFilter_h
20 
21 #include "itkImageToImageFilter.h"
23 
24 namespace itk
25 {
53 template< typename TInputImage, typename TOutputImage=Image< std::complex<typename TInputImage::PixelType>, TInputImage::ImageDimension> >
54 class ITK_TEMPLATE_EXPORT RealToHalfHermitianForwardFFTImageFilter:
55  public ImageToImageFilter< TInputImage, TOutputImage >
56 {
57 public:
58  ITK_DISALLOW_COPY_AND_ASSIGN(RealToHalfHermitianForwardFFTImageFilter);
59 
61  using InputImageType = TInputImage;
62  using InputPixelType = typename InputImageType::PixelType;
65  using OutputImageType = TOutputImage;
66  using OutputPixelType = typename OutputImageType::PixelType;
69 
74 
79  static Pointer New();
80 
81  /* Return the prefered greatest prime factor supported for the input image
82  * size. Defaults to 2 as many implementations work only for sizes that are
83  * power of 2.
84  */
85  virtual SizeValueType GetSizeGreatestPrimeFactor() const;
86 
89  itkGetDecoratedOutputMacro(ActualXDimensionIsOdd, bool);
90 
91 protected:
93  ~RealToHalfHermitianForwardFFTImageFilter() override = default;
94 
97  void GenerateOutputInformation() override;
98 
100  void GenerateInputRequestedRegion() override;
101 
103  void EnlargeOutputRequestedRegion(DataObject *output) override;
104 
105  itkSetDecoratedOutputMacro(ActualXDimensionIsOdd, bool);
106 };
107 } // end namespace itk
108 
109 #ifndef ITK_MANUAL_INSTANTIATION
110 #include "itkRealToHalfHermitianForwardFFTImageFilter.hxx"
111 #endif
112 
113 #endif
unsigned long SizeValueType
Definition: itkIntTypes.h:83
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 specialized real-to-complex forward Fast Fourier Transform.
Base class for all data objects in ITK.