ITK  6.0.0
Insight Toolkit
itkVnlComplexToComplexFFTImageFilter.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 itkVnlComplexToComplexFFTImageFilter_h
19 #define itkVnlComplexToComplexFFTImageFilter_h
20 
23 
24 namespace itk
25 {
41 template <typename TInputImage, typename TOutputImage = TInputImage>
42 class ITK_TEMPLATE_EXPORT VnlComplexToComplexFFTImageFilter
43  : public ComplexToComplexFFTImageFilter<TInputImage, TOutputImage>
44 {
45 public:
46  ITK_DISALLOW_COPY_AND_MOVE(VnlComplexToComplexFFTImageFilter);
47 
53 
54  using typename Superclass::ImageType;
55  using PixelType = typename ImageType::PixelType;
56  using typename Superclass::InputImageType;
57  using typename Superclass::OutputImageType;
59 
61  itkNewMacro(Self);
62 
64  itkOverrideGetNameOfClassMacro(VnlComplexToComplexFFTImageFilter);
65 
66  static constexpr unsigned int ImageDimension = ImageType::ImageDimension;
67 
68 protected:
70  ~VnlComplexToComplexFFTImageFilter() override = default;
71 
72  void
73  BeforeThreadedGenerateData() override;
74  void
75  DynamicThreadedGenerateData(const OutputImageRegionType & outputRegionForThread) override;
76 };
77 
78 template <>
80 {
81  template <typename TUnderlying>
82  using InputPixelType = std::complex<TUnderlying>;
83  template <typename TUnderlying>
84  using OutputPixelType = std::complex<TUnderlying>;
85  using FilterDimensions = std::integer_sequence<unsigned int, 4, 3, 2, 1>;
86 };
87 
88 } // end namespace itk
89 
90 #ifndef ITK_MANUAL_INSTANTIATION
91 # include "itkVnlComplexToComplexFFTImageFilter.hxx"
92 #endif
93 
94 #endif // itkVnlComplexToComplexFFTImageFilter_h
itk::FFTImageFilterTraits
Helper defining pixel traits for templated FFT image filters.
Definition: itkFFTImageFilterFactory.h:42
itk::SmartPointer< Self >
itk::ComplexToComplexFFTImageFilter
Implements an API to enable the Fourier transform or the inverse Fourier transform of images with com...
Definition: itkComplexToComplexFFTImageFilter.h:74
itk::ImageSource
Base class for all process objects that output image data.
Definition: itkImageSource.h:67
itk::FFTImageFilterTraits< VnlComplexToComplexFFTImageFilter >::OutputPixelType
std::complex< TUnderlying > OutputPixelType
Definition: itkVnlComplexToComplexFFTImageFilter.h:84
itk::FFTImageFilterTraits< VnlComplexToComplexFFTImageFilter >::InputPixelType
std::complex< TUnderlying > InputPixelType
Definition: itkVnlComplexToComplexFFTImageFilter.h:82
itk::GTest::TypedefsAndConstructors::Dimension2::RegionType
ImageBaseType::RegionType RegionType
Definition: itkGTestTypedefsAndConstructors.h:54
itk::VnlComplexToComplexFFTImageFilter::PixelType
typename ImageType::PixelType PixelType
Definition: itkVnlComplexToComplexFFTImageFilter.h:55
itk::ImageSource::OutputImageRegionType
typename OutputImageType::RegionType OutputImageRegionType
Definition: itkImageSource.h:92
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnatomicalOrientation.h:29
itk::ProcessObject
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Definition: itkProcessObject.h:139
itk::VnlComplexToComplexFFTImageFilter
VNL based complex to complex Fast Fourier Transform.
Definition: itkVnlComplexToComplexFFTImageFilter.h:42
itkComplexToComplexFFTImageFilter.h
itkFFTImageFilterFactory.h
itk::FFTImageFilterTraits< VnlComplexToComplexFFTImageFilter >::FilterDimensions
std::integer_sequence< unsigned int, 4, 3, 2, 1 > FilterDimensions
Definition: itkVnlComplexToComplexFFTImageFilter.h:85