ITK  6.0.0
Insight Toolkit
itkVnlForwardFFTImageFilter.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 itkVnlForwardFFTImageFilter_h
19#define itkVnlForwardFFTImageFilter_h
20
22
23#include "vnl/algo/vnl_fft_base.h"
25
26namespace itk
27{
43template <typename TInputImage,
44 typename TOutputImage = Image<std::complex<typename TInputImage::PixelType>, TInputImage::ImageDimension>>
45class ITK_TEMPLATE_EXPORT VnlForwardFFTImageFilter : public ForwardFFTImageFilter<TInputImage, TOutputImage>
46{
47public:
48 ITK_DISALLOW_COPY_AND_MOVE(VnlForwardFFTImageFilter);
49
51 using InputImageType = TInputImage;
52 using InputPixelType = typename InputImageType::PixelType;
55 using OutputImageType = TOutputImage;
56 using OutputPixelType = typename OutputImageType::PixelType;
57
62
64 itkNewMacro(Self);
65
67 itkOverrideGetNameOfClassMacro(VnlForwardFFTImageFilter);
68
71 static constexpr unsigned int ImageDimension = TOutputImage::ImageDimension;
72 static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
73 static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension;
74
77
78#ifdef ITK_USE_CONCEPT_CHECKING
79 // Begin concept checking
81 // End concept checking
82#endif
83
84protected:
86 ~VnlForwardFFTImageFilter() override = default;
87
88 void
89 GenerateData() override;
90
91private:
92 using SignalVectorType = vnl_vector<std::complex<InputPixelType>>;
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} // namespace itk
107
108#ifndef ITK_MANUAL_INSTANTIATION
109# include "itkVnlForwardFFTImageFilter.hxx"
110#endif
111
112#endif
Base class for forward Fast Fourier Transform.
Light weight base class for most itk classes.
VNL based forward Fast Fourier Transform.
~VnlForwardFFTImageFilter() override=default
typename OutputImageType::PixelType OutputPixelType
typename InputImageType::PixelType InputPixelType
vnl_vector< std::complex< InputPixelType > > SignalVectorType
SizeValueType GetSizeGreatestPrimeFactor() const override
typename InputImageType::SizeType InputSizeType
typename InputImageType::SizeValueType InputSizeValueType
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
unsigned long SizeValueType
Definition: itkIntTypes.h:86
std::integer_sequence< unsigned int, 4, 3, 2, 1 > FilterDimensions
Helper defining pixel traits for templated FFT image filters.