ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkPocketFFTHalfHermitianToRealInverseFFTImageFilter.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 itkPocketFFTHalfHermitianToRealInverseFFTImageFilter_h
19#define itkPocketFFTHalfHermitianToRealInverseFFTImageFilter_h
20
23
24namespace itk
25{
38template <typename TInputImage,
41 : public HalfHermitianToRealInverseFFTImageFilter<TInputImage, TOutputImage>
42{
43public:
44 ITK_DISALLOW_COPY_AND_MOVE(PocketFFTHalfHermitianToRealInverseFFTImageFilter);
45
46 using InputImageType = TInputImage;
47 using InputPixelType = typename InputImageType::PixelType;
48 using InputSizeType = typename InputImageType::SizeType;
49 using OutputImageType = TOutputImage;
50 using OutputPixelType = typename OutputImageType::PixelType;
51 using OutputSizeType = typename OutputImageType::SizeType;
52
57
58 itkNewMacro(Self);
59
61
62 static constexpr unsigned int ImageDimension = TOutputImage::ImageDimension;
63 static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
64 static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension;
65
66 [[nodiscard]] SizeValueType
68
70
71protected:
74
75 void
76 GenerateData() override;
77};
78
79// Describe whether input/output are real- or complex-valued
80// for factory registration
81template <>
83{
84 template <typename TUnderlying>
85 using InputPixelType = std::complex<TUnderlying>;
86 template <typename TUnderlying>
87 using OutputPixelType = TUnderlying;
88 using FilterDimensions = std::integer_sequence<unsigned int, 4, 3, 2, 1>;
89};
90} // namespace itk
91
92#ifndef ITK_MANUAL_INSTANTIATION
93# include "itkPocketFFTHalfHermitianToRealInverseFFTImageFilter.hxx"
94#endif
95
96#endif
Templated n-dimensional image class.
Definition itkImage.h:89
PocketFFT-based half-Hermitian-to-real inverse Fast Fourier Transform.
HalfHermitianToRealInverseFFTImageFilter< TInputImage, TOutputImage > Superclass
SizeValueType GetSizeGreatestPrimeFactor() const override
Implements transparent reference counting.
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
unsigned long SizeValueType
Definition itkIntTypes.h:86
Helper defining pixel traits for templated FFT image filters.