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 
26 namespace itk
27 {
43 template <typename TInputImage,
44  typename TOutputImage = Image<std::complex<typename TInputImage::PixelType>, TInputImage::ImageDimension>>
45 class ITK_TEMPLATE_EXPORT VnlForwardFFTImageFilter : public ForwardFFTImageFilter<TInputImage, TOutputImage>
46 {
47 public:
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 
76  GetSizeGreatestPrimeFactor() const override;
77 
78 #ifdef ITK_USE_CONCEPT_CHECKING
79  // Begin concept checking
81  // End concept checking
82 #endif
83 
84 protected:
85  VnlForwardFFTImageFilter() = default;
86  ~VnlForwardFFTImageFilter() override = default;
87 
88  void
89  GenerateData() override;
90 
91 private:
92  using SignalVectorType = vnl_vector<std::complex<InputPixelType>>;
93 };
94 
95 // Describe whether input/output are real- or complex-valued
96 // for factory registration
97 template <>
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
itk::FFTImageFilterTraits< VnlForwardFFTImageFilter >::FilterDimensions
std::integer_sequence< unsigned int, 4, 3, 2, 1 > FilterDimensions
Definition: itkVnlForwardFFTImageFilter.h:104
itk::GTest::TypedefsAndConstructors::Dimension2::SizeType
ImageBaseType::SizeType SizeType
Definition: itkGTestTypedefsAndConstructors.h:49
itk::FFTImageFilterTraits
Helper defining pixel traits for templated FFT image filters.
Definition: itkFFTImageFilterFactory.h:42
itk::SmartPointer< Self >
itk::ForwardFFTImageFilter
Base class for forward Fast Fourier Transform.
Definition: itkForwardFFTImageFilter.h:65
itk::ForwardFFTImageFilter::InputSizeType
typename InputImageType::SizeType InputSizeType
Definition: itkForwardFFTImageFilter.h:75
itk::VnlForwardFFTImageFilter::InputSizeValueType
typename InputImageType::SizeValueType InputSizeValueType
Definition: itkVnlForwardFFTImageFilter.h:54
itk::Concept::SameDimension
Definition: itkConceptChecking.h:696
itkForwardFFTImageFilter.h
itk::ForwardFFTImageFilter::OutputPixelType
typename OutputImageType::PixelType OutputPixelType
Definition: itkForwardFFTImageFilter.h:77
itk::ImageSource
Base class for all process objects that output image data.
Definition: itkImageSource.h:67
itk::VnlForwardFFTImageFilter::SignalVectorType
vnl_vector< std::complex< InputPixelType > > SignalVectorType
Definition: itkVnlForwardFFTImageFilter.h:92
itk::ForwardFFTImageFilter::InputPixelType
typename InputImageType::PixelType InputPixelType
Definition: itkForwardFFTImageFilter.h:73
itk::ImageToImageFilter::InputImageType
TInputImage InputImageType
Definition: itkImageToImageFilter.h:129
itk::FFTImageFilterTraits< VnlForwardFFTImageFilter >::InputPixelType
TUnderlying InputPixelType
Definition: itkVnlForwardFFTImageFilter.h:101
itkConceptMacro
#define itkConceptMacro(name, concept)
Definition: itkConceptChecking.h:65
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnatomicalOrientation.h:29
itk::VnlForwardFFTImageFilter
VNL based forward Fast Fourier Transform.
Definition: itkVnlForwardFFTImageFilter.h:45
itk::ProcessObject
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Definition: itkProcessObject.h:139
itk::FFTImageFilterTraits< VnlForwardFFTImageFilter >::OutputPixelType
std::complex< TUnderlying > OutputPixelType
Definition: itkVnlForwardFFTImageFilter.h:103
itkFFTImageFilterFactory.h
itk::SizeValueType
unsigned long SizeValueType
Definition: itkIntTypes.h:86
itk::ImageSource::OutputImageType
TOutputImage OutputImageType
Definition: itkImageSource.h:90