ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkVnlRealToHalfHermitianForwardFFTImageFilter.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 itkVnlRealToHalfHermitianForwardFFTImageFilter_h
21 #define itkVnlRealToHalfHermitianForwardFFTImageFilter_h
22 
23 #include "itkVnlFFTCommon.h"
24 #include "vnl/algo/vnl_fft_base.h"
25 
26 namespace itk
27 {
41 template< typename TInputImage, typename TOutputImage=Image< std::complex<typename TInputImage::PixelType>, TInputImage::ImageDimension> >
43  public RealToHalfHermitianForwardFFTImageFilter< TInputImage, TOutputImage >
44 {
45 public:
46  ITK_DISALLOW_COPY_AND_ASSIGN(VnlRealToHalfHermitianForwardFFTImageFilter);
47 
49  using InputImageType = TInputImage;
50  using InputPixelType = typename InputImageType::PixelType;
53  using OutputImageType = TOutputImage;
54  using OutputPixelType = typename OutputImageType::PixelType;
56 
61 
63  itkNewMacro(Self);
64 
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 
75  SizeValueType GetSizeGreatestPrimeFactor() const override;
76 
77 #ifdef ITK_USE_CONCEPT_CHECKING
78  // Begin concept checking
79  itkConceptMacro( ImageDimensionsMatchCheck,
81  // End concept checking
82 #endif
83 
84 protected:
86  ~VnlRealToHalfHermitianForwardFFTImageFilter() override = default;
87 
88  void GenerateData() override;
89 
90 private:
91  using SignalVectorType = vnl_vector< std::complex< InputPixelType > >;
92 };
93 }
94 
95 #ifndef ITK_MANUAL_INSTANTIATION
96 #include "itkVnlRealToHalfHermitianForwardFFTImageFilter.hxx"
97 #endif
98 
99 #endif
unsigned long SizeValueType
Definition: itkIntTypes.h:83
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.
TOutputImage OutputImageType
Base class for specialized real-to-complex forward Fast Fourier Transform.
#define itkConceptMacro(name, concept)