ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkVnlForwardFFTImageFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
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  * http://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  *=========================================================================*/
19 
20 #ifndef itkVnlForwardFFTImageFilter_h
21 #define itkVnlForwardFFTImageFilter_h
22 
23 #include "vnl/algo/vnl_fft_base.h"
24 
25 namespace itk
26 {
45 template< typename TInputImage, typename TOutputImage=Image< std::complex<typename TInputImage::PixelType>, TInputImage::ImageDimension> >
46 class ITK_TEMPLATE_EXPORT VnlForwardFFTImageFilter:
47  public ForwardFFTImageFilter< TInputImage, TOutputImage >
48 {
49 public:
50  ITK_DISALLOW_COPY_AND_ASSIGN(VnlForwardFFTImageFilter);
51 
53  using InputImageType = TInputImage;
54  using InputPixelType = typename InputImageType::PixelType;
57  using OutputImageType = TOutputImage;
58  using OutputPixelType = typename OutputImageType::PixelType;
59 
64 
66  itkNewMacro(Self);
67 
69  itkTypeMacro(VnlForwardFFTImageFilter,
71 
74  static constexpr unsigned int ImageDimension = TOutputImage::ImageDimension;
75  static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
76  static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension;
77 
78  SizeValueType GetSizeGreatestPrimeFactor() const override;
79 
80 #ifdef ITK_USE_CONCEPT_CHECKING
81  // Begin concept checking
82  itkConceptMacro( ImageDimensionsMatchCheck,
84  // End concept checking
85 #endif
86 
87 protected:
88  VnlForwardFFTImageFilter() = default;
89  ~VnlForwardFFTImageFilter() override = default;
90 
91  void GenerateData() override;
92 
93 private:
94  using SignalVectorType = vnl_vector< std::complex< InputPixelType > >;
95 };
96 }
97 
98 #ifndef ITK_MANUAL_INSTANTIATION
99 #include "itkVnlForwardFFTImageFilter.hxx"
100 #endif
101 
102 #endif
Base class for forward Fast Fourier Transform.
typename InputImageType::SizeType InputSizeType
typename OutputImageType::PixelType OutputPixelType
unsigned long SizeValueType
Definition: itkIntTypes.h:83
typename InputImageType::PixelType InputPixelType
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Base class for all process objects that output image data.
VNL based forward Fast Fourier Transform.
TOutputImage OutputImageType
typename InputImageType::SizeValueType InputSizeValueType
#define itkConceptMacro(name, concept)
vnl_vector< std::complex< InputPixelType > > SignalVectorType