ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkHalfHermitianToRealInverseFFTImageFilter.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 itkHalfHermitianToRealInverseFFTImageFilter_h
19 #define itkHalfHermitianToRealInverseFFTImageFilter_h
20 
21 #include "itkImageToImageFilter.h"
23 
24 namespace itk
25 {
53 template< typename TInputImage, typename TOutputImage=Image< typename TInputImage::PixelType::value_type, TInputImage::ImageDimension> >
54 class ITK_TEMPLATE_EXPORT HalfHermitianToRealInverseFFTImageFilter:
55  public ImageToImageFilter< TInputImage, TOutputImage >
56 
57 {
58 public:
59  ITK_DISALLOW_COPY_AND_ASSIGN(HalfHermitianToRealInverseFFTImageFilter);
60 
62  using InputImageType = TInputImage;
63  using InputPixelType = typename InputImageType::PixelType;
64  using OutputImageType = TOutputImage;
65  using OutputPixelType = typename OutputImageType::PixelType;
66 
71 
72  static constexpr unsigned int ImageDimension = InputImageType::ImageDimension;
73 
78  static Pointer New();
79 
81  itkSetGetDecoratedInputMacro(ActualXDimensionIsOdd, bool);
82  itkBooleanMacro(ActualXDimensionIsOdd);
84 
85  /* Return the prefered greatest prime factor supported for the input image
86  * size. Defaults to 2 as many implementations work only for sizes that are
87  * power of 2.
88  */
89  virtual SizeValueType GetSizeGreatestPrimeFactor() const;
90 
91 protected:
93  ~HalfHermitianToRealInverseFFTImageFilter() override = default;
94 
97  void GenerateOutputInformation() override;
98 
100  void GenerateInputRequestedRegion() override;
101 
104  void EnlargeOutputRequestedRegion( DataObject *itkNotUsed(output) ) override;
105 };
106 } // end namespace itk
107 
108 #ifndef ITK_MANUAL_INSTANTIATION
109 #include "itkHalfHermitianToRealInverseFFTImageFilter.hxx"
110 #endif
111 
112 #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.
Base class for specialized complex-to-real inverse Fast Fourier Transform.
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.