ITK  6.0.0
Insight Toolkit
itkRealToHalfHermitianForwardFFTImageFilter.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  * https://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"
22 #include "itkMacro.h"
24 
25 namespace itk
26 {
55 template <typename TInputImage,
56  typename TOutputImage = Image<std::complex<typename TInputImage::PixelType>, TInputImage::ImageDimension>>
58  : public ImageToImageFilter<TInputImage, TOutputImage>
59 {
60 public:
61  ITK_DISALLOW_COPY_AND_MOVE(RealToHalfHermitianForwardFFTImageFilter);
62 
64  using InputImageType = TInputImage;
65  using InputPixelType = typename InputImageType::PixelType;
68  using OutputImageType = TOutputImage;
69  using OutputPixelType = typename OutputImageType::PixelType;
72 
77 
79  itkOverrideGetNameOfClassMacro(RealToHalfHermitianForwardFFTImageFilter);
80 
85  itkFactoryOnlyNewMacro(Self);
86 
87  /* Return the preferred greatest prime factor supported for the input image
88  * size. Defaults to 2 as many implementations work only for sizes that are
89  * power of 2.
90  */
91  virtual SizeValueType
92  GetSizeGreatestPrimeFactor() const;
93 
96  itkGetDecoratedOutputMacro(ActualXDimensionIsOdd, bool);
97 
98 protected:
100  ~RealToHalfHermitianForwardFFTImageFilter() override = default;
101 
104  void
105  GenerateOutputInformation() override;
106 
108  void
109  GenerateInputRequestedRegion() override;
110 
112  void
113  EnlargeOutputRequestedRegion(DataObject * output) override;
114 
115  itkSetDecoratedOutputMacro(ActualXDimensionIsOdd, bool);
116 };
117 } // end namespace itk
118 
119 #ifndef ITK_MANUAL_INSTANTIATION
120 # include "itkRealToHalfHermitianForwardFFTImageFilter.hxx"
121 #endif
122 
123 #ifdef ITK_FFTIMAGEFILTERINIT_FACTORY_REGISTER_MANAGER
124 # include "itkFFTImageFilterInitFactoryRegisterManager.h"
125 #endif
126 
127 #endif
itk::RealToHalfHermitianForwardFFTImageFilter::InputSizeType
typename InputImageType::SizeType InputSizeType
Definition: itkRealToHalfHermitianForwardFFTImageFilter.h:67
itk::RealToHalfHermitianForwardFFTImageFilter::OutputSizeType
typename OutputIndexType::SizeType OutputSizeType
Definition: itkRealToHalfHermitianForwardFFTImageFilter.h:71
itk::GTest::TypedefsAndConstructors::Dimension2::SizeType
ImageBaseType::SizeType SizeType
Definition: itkGTestTypedefsAndConstructors.h:49
itk::RealToHalfHermitianForwardFFTImageFilter
Base class for specialized real-to-complex forward Fast Fourier Transform.
Definition: itkRealToHalfHermitianForwardFFTImageFilter.h:57
itk::SmartPointer< Self >
itk::RealToHalfHermitianForwardFFTImageFilter::OutputPixelType
typename OutputImageType::PixelType OutputPixelType
Definition: itkRealToHalfHermitianForwardFFTImageFilter.h:69
itk::GTest::TypedefsAndConstructors::Dimension2::IndexType
ImageBaseType::IndexType IndexType
Definition: itkGTestTypedefsAndConstructors.h:50
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::RealToHalfHermitianForwardFFTImageFilter::OutputIndexType
typename OutputImageType::IndexType OutputIndexType
Definition: itkRealToHalfHermitianForwardFFTImageFilter.h:70
itkMacro.h
itk::RealToHalfHermitianForwardFFTImageFilter::InputIndexType
typename InputImageType::IndexType InputIndexType
Definition: itkRealToHalfHermitianForwardFFTImageFilter.h:66
itk::ImageToImageFilter::InputImageType
TInputImage InputImageType
Definition: itkImageToImageFilter.h:129
itkImageToImageFilter.h
itk::RealToHalfHermitianForwardFFTImageFilter::InputPixelType
typename InputImageType::PixelType InputPixelType
Definition: itkRealToHalfHermitianForwardFFTImageFilter.h:65
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnatomicalOrientation.h:29
itk::ProcessObject
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Definition: itkProcessObject.h:139
itkSimpleDataObjectDecorator.h
itk::SizeValueType
unsigned long SizeValueType
Definition: itkIntTypes.h:86
itk::ImageSource::OutputImageType
TOutputImage OutputImageType
Definition: itkImageSource.h:90
itk::DataObject
Base class for all data objects in ITK.
Definition: itkDataObject.h:293