ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkVnlRealToHalfHermitianForwardFFTImageFilter.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 itkVnlRealToHalfHermitianForwardFFTImageFilter_h
19#define itkVnlRealToHalfHermitianForwardFFTImageFilter_h
20
22
23#include "itkVnlFFTCommon.h"
24#include "vnl/algo/vnl_fft_base.h"
25
27
28namespace itk
29{
44template <typename TInputImage,
45 typename TOutputImage = Image<std::complex<typename TInputImage::PixelType>, TInputImage::ImageDimension>>
47 : public RealToHalfHermitianForwardFFTImageFilter<TInputImage, TOutputImage>
48{
49public:
50 ITK_DISALLOW_COPY_AND_MOVE(VnlRealToHalfHermitianForwardFFTImageFilter);
51
53 using InputImageType = TInputImage;
54 using InputPixelType = typename InputImageType::PixelType;
55 using InputSizeType = typename InputImageType::SizeType;
56 using InputSizeValueType = typename InputImageType::SizeValueType;
57 using OutputImageType = TOutputImage;
58 using OutputPixelType = typename OutputImageType::PixelType;
59 using OutputSizeType = typename OutputImageType::SizeType;
60
65
67 itkNewMacro(Self);
68
70 itkOverrideGetNameOfClassMacro(VnlRealToHalfHermitianForwardFFTImageFilter);
71
74 static constexpr unsigned int ImageDimension = TOutputImage::ImageDimension;
75 static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
76 static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension;
77
80
82
83protected:
86
87 void
88 GenerateData() override;
89
90private:
91 using SignalVectorType = vnl_vector<std::complex<InputPixelType>>;
92};
93
94
95// Describe whether input/output are real- or complex-valued
96// for factory registration
97template <>
99{
100 template <typename TUnderlying>
101 using InputPixelType = TUnderlying;
102 template <typename TUnderlying>
103 using OutputPixelType = std::complex<TUnderlying>;
104 using FilterDimensions = std::integer_sequence<unsigned int, 4, 3, 2, 1>;
105};
106
107} // namespace itk
108
109#ifndef ITK_MANUAL_INSTANTIATION
110# include "itkVnlRealToHalfHermitianForwardFFTImageFilter.hxx"
111#endif
112
113#endif
Templated n-dimensional image class.
Definition itkImage.h:89
Implements transparent reference counting.
RealToHalfHermitianForwardFFTImageFilter< TInputImage, TOutputImage > Superclass
~VnlRealToHalfHermitianForwardFFTImageFilter() override=default
SizeValueType GetSizeGreatestPrimeFactor() const override
#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.