ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
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;
53 using InputSizeType = typename InputImageType::SizeType;
54 using InputSizeValueType = typename InputImageType::SizeValueType;
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
79
80protected:
82 ~VnlForwardFFTImageFilter() override = default;
83
84 void
85 GenerateData() override;
86
87private:
88 using SignalVectorType = vnl_vector<std::complex<InputPixelType>>;
89};
90
91// Describe whether input/output are real- or complex-valued
92// for factory registration
93template <>
95{
96 template <typename TUnderlying>
97 using InputPixelType = TUnderlying;
98 template <typename TUnderlying>
99 using OutputPixelType = std::complex<TUnderlying>;
100 using FilterDimensions = std::integer_sequence<unsigned int, 4, 3, 2, 1>;
101};
102} // namespace itk
103
104#ifndef ITK_MANUAL_INSTANTIATION
105# include "itkVnlForwardFFTImageFilter.hxx"
106#endif
107
108#endif
Templated n-dimensional image class.
Definition itkImage.h:89
Implements transparent reference counting.
VNL based forward Fast Fourier Transform.
ForwardFFTImageFilter< TInputImage, TOutputImage > Superclass
~VnlForwardFFTImageFilter() override=default
vnl_vector< std::complex< InputPixelType > > SignalVectorType
typename OutputImageType::PixelType OutputPixelType
typename InputImageType::PixelType InputPixelType
SizeValueType GetSizeGreatestPrimeFactor() const override
typename InputImageType::SizeType InputSizeType
typename InputImageType::SizeValueType InputSizeValueType
SmartPointer< const Self > ConstPointer
#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.