ITK  6.0.0
Insight Toolkit
itkVnlHalfHermitianToRealInverseFFTImageFilter.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 itkVnlHalfHermitianToRealInverseFFTImageFilter_h
19#define itkVnlHalfHermitianToRealInverseFFTImageFilter_h
20
22
23#include "itkVnlFFTCommon.h"
24#include "itkImage.h"
25#include "vnl/algo/vnl_fft_base.h"
26
28
29namespace itk
30{
46template <typename TInputImage,
47 typename TOutputImage = Image<typename TInputImage::PixelType::value_type, TInputImage::ImageDimension>>
49 : public HalfHermitianToRealInverseFFTImageFilter<TInputImage, TOutputImage>
50{
51public:
52 ITK_DISALLOW_COPY_AND_MOVE(VnlHalfHermitianToRealInverseFFTImageFilter);
53
55 using InputImageType = TInputImage;
56 using InputPixelType = typename InputImageType::PixelType;
60 using OutputImageType = TOutputImage;
61 using OutputPixelType = typename OutputImageType::PixelType;
65
70
72 itkNewMacro(Self);
73
75 itkOverrideGetNameOfClassMacro(VnlHalfHermitianToRealInverseFFTImageFilter);
76
79 static constexpr unsigned int ImageDimension = TOutputImage::ImageDimension;
80 static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
81 static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension;
82
85
86#ifdef ITK_USE_CONCEPT_CHECKING
87 // Begin concept checking
88 itkConceptMacro(PixelUnsignedIntDivisionOperatorsCheck, (Concept::DivisionOperators<OutputPixelType, unsigned int>));
90 // End concept checking
91#endif
92
93protected:
96
97 void
98 GenerateData() override;
99
100private:
101 using SignalVectorType = vnl_vector<InputPixelType>;
102};
103
104// Describe whether input/output are real- or complex-valued
105// for factory registration
106template <>
108{
109 template <typename TUnderlying>
110 using InputPixelType = std::complex<TUnderlying>;
111 template <typename TUnderlying>
112 using OutputPixelType = TUnderlying;
113 using FilterDimensions = std::integer_sequence<unsigned int, 4, 3, 2, 1>;
114};
115
116} // namespace itk
117
118#ifndef ITK_MANUAL_INSTANTIATION
119# include "itkVnlHalfHermitianToRealInverseFFTImageFilter.hxx"
120#endif
121
122#endif
Base class for specialized complex-to-real inverse Fast Fourier Transform.
Light weight base class for most itk classes.
SizeValueType GetSizeGreatestPrimeFactor() const override
~VnlHalfHermitianToRealInverseFFTImageFilter() override=default
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
long IndexValueType
Definition: itkIntTypes.h:93
unsigned long SizeValueType
Definition: itkIntTypes.h:86
Helper defining pixel traits for templated FFT image filters.