ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkVnlInverseFFTImageFilter.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 itkVnlInverseFFTImageFilter_h
21 #define itkVnlInverseFFTImageFilter_h
22 
23 #include "itkImage.h"
24 #include "vnl/algo/vnl_fft_base.h"
25 
26 namespace itk
27 {
45 template< typename TInputImage, typename TOutputImage=Image< typename TInputImage::PixelType::value_type, TInputImage::ImageDimension> >
46 class ITK_TEMPLATE_EXPORT VnlInverseFFTImageFilter:
47  public InverseFFTImageFilter< TInputImage, TOutputImage >
48 {
49 public:
50  ITK_DISALLOW_COPY_AND_ASSIGN(VnlInverseFFTImageFilter);
51 
53  using InputImageType = TInputImage;
54  using InputPixelType = typename InputImageType::PixelType;
57  using OutputImageType = TOutputImage;
58  using OutputPixelType = typename OutputImageType::PixelType;
60 
65 
67  itkNewMacro(Self);
68 
70  itkTypeMacro(VnlInverseFFTImageFilter,
72 
75  static constexpr unsigned int ImageDimension = TOutputImage::ImageDimension;
76  static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
77  static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension;
78 
79  SizeValueType GetSizeGreatestPrimeFactor() const override;
80 
81 #ifdef ITK_USE_CONCEPT_CHECKING
82  // Begin concept checking
83  itkConceptMacro( PixelUnsignedIntDivisionOperatorsCheck,
85  itkConceptMacro( ImageDimensionsMatchCheck,
87  // End concept checking
88 #endif
89 
90 protected:
91  VnlInverseFFTImageFilter() = default;
92  ~VnlInverseFFTImageFilter() override = default;
93 
94  void GenerateData() override; // generates output from input
95 
96 private:
97  using SignalVectorType = vnl_vector< InputPixelType >;
98 };
99 }
100 
101 #ifndef ITK_MANUAL_INSTANTIATION
102 #include "itkVnlInverseFFTImageFilter.hxx"
103 #endif
104 
105 #endif
typename OutputImageType::PixelType OutputPixelType
Base class for inverse Fast Fourier Transform.
vnl_vector< InputPixelType > SignalVectorType
unsigned long SizeValueType
Definition: itkIntTypes.h:83
typename InputImageType::PixelType InputPixelType
typename OutputImageType::SizeType OutputSizeType
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
typename InputImageType::SizeValueType InputSizeValueType
typename InputImageType::SizeType InputSizeType
VNL-based reverse Fast Fourier Transform.
#define itkConceptMacro(name, concept)