ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkVnlHalfHermitianToRealInverseFFTImageFilter.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 itkVnlHalfHermitianToRealInverseFFTImageFilter_h
21 #define itkVnlHalfHermitianToRealInverseFFTImageFilter_h
22 
23 #include "itkVnlFFTCommon.h"
24 
25 #include "itkImage.h"
26 #include "vnl/algo/vnl_fft_base.h"
27 
28 namespace itk
29 {
44 template< typename TInputImage, typename TOutputImage=Image< typename TInputImage::PixelType::value_type, TInputImage::ImageDimension> >
46  public HalfHermitianToRealInverseFFTImageFilter< TInputImage, TOutputImage >
47 {
48 public:
49  ITK_DISALLOW_COPY_AND_ASSIGN(VnlHalfHermitianToRealInverseFFTImageFilter);
50 
52  using InputImageType = TInputImage;
53  using InputPixelType = typename InputImageType::PixelType;
57  using OutputImageType = TOutputImage;
58  using OutputPixelType = typename OutputImageType::PixelType;
62 
67 
69  itkNewMacro(Self);
70 
74 
77  static constexpr unsigned int ImageDimension = TOutputImage::ImageDimension;
78  static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
79  static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension;
80 
81  SizeValueType GetSizeGreatestPrimeFactor() const override;
82 
83 #ifdef ITK_USE_CONCEPT_CHECKING
84  // Begin concept checking
85  itkConceptMacro( PixelUnsignedIntDivisionOperatorsCheck,
87  itkConceptMacro( ImageDimensionsMatchCheck,
89  // End concept checking
90 #endif
91 
92 protected:
94  ~VnlHalfHermitianToRealInverseFFTImageFilter() override = default;
95 
96  void GenerateData() override;
97 
98 private:
99  using SignalVectorType = vnl_vector< InputPixelType >;
100 };
101 }
102 
103 #ifndef ITK_MANUAL_INSTANTIATION
104 #include "itkVnlHalfHermitianToRealInverseFFTImageFilter.hxx"
105 #endif
106 
107 #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.
Base class for specialized complex-to-real inverse Fast Fourier Transform.
TOutputImage OutputImageType
signed long IndexValueType
Definition: itkIntTypes.h:90
#define itkConceptMacro(name, concept)