ITK  5.2.0
Insight Toolkit
itkVnlInverseFFTImageFilter.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  * 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 {
44 template <typename TInputImage,
45  typename TOutputImage = Image<typename TInputImage::PixelType::value_type, TInputImage::ImageDimension>>
46 class ITK_TEMPLATE_EXPORT VnlInverseFFTImageFilter : public InverseFFTImageFilter<TInputImage, TOutputImage>
47 {
48 public:
49  ITK_DISALLOW_COPY_AND_MOVE(VnlInverseFFTImageFilter);
50 
52  using InputImageType = TInputImage;
53  using InputPixelType = typename InputImageType::PixelType;
56  using OutputImageType = TOutputImage;
57  using OutputPixelType = typename OutputImageType::PixelType;
59 
64 
66  itkNewMacro(Self);
67 
70 
73  static constexpr unsigned int ImageDimension = TOutputImage::ImageDimension;
74  static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
75  static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension;
76 
78  GetSizeGreatestPrimeFactor() const override;
79 
80 # ifdef ITK_USE_CONCEPT_CHECKING
81  // Begin concept checking
82  itkConceptMacro(PixelUnsignedIntDivisionOperatorsCheck, (Concept::DivisionOperators<OutputPixelType, unsigned int>));
84  // End concept checking
85 # endif
86 
87 protected:
88  VnlInverseFFTImageFilter() = default;
89  ~VnlInverseFFTImageFilter() override = default;
90 
91  void
92  GenerateData() override; // generates output from input
93 
94 private:
95  using SignalVectorType = vnl_vector<InputPixelType>;
96 };
97 } // namespace itk
98 
99 # ifndef ITK_MANUAL_INSTANTIATION
100 # include "itkVnlInverseFFTImageFilter.hxx"
101 # endif
102 
103 #endif
itkInverseFFTImageFilter.h
itk::VnlInverseFFTImageFilter::OutputSizeType
typename OutputImageType::SizeType OutputSizeType
Definition: itkVnlInverseFFTImageFilter.h:58
itk::VnlInverseFFTImageFilter::SignalVectorType
vnl_vector< InputPixelType > SignalVectorType
Definition: itkVnlInverseFFTImageFilter.h:95
itk::GTest::TypedefsAndConstructors::Dimension2::SizeType
ImageBaseType::SizeType SizeType
Definition: itkGTestTypedefsAndConstructors.h:49
itkImage.h
itk::VnlInverseFFTImageFilter
VNL-based reverse Fast Fourier Transform.
Definition: itkVnlInverseFFTImageFilter.h:46
itk::SmartPointer< Self >
itk::Concept::SameDimension
Definition: itkConceptChecking.h:694
itk::ImageSource
Base class for all process objects that output image data.
Definition: itkImageSource.h:67
itk::InverseFFTImageFilter::OutputPixelType
typename OutputImageType::PixelType OutputPixelType
Definition: itkInverseFFTImageFilter.h:60
itk::InverseFFTImageFilter
Base class for inverse Fast Fourier Transform.
Definition: itkInverseFFTImageFilter.h:50
itk::ImageToImageFilter::InputImageType
TInputImage InputImageType
Definition: itkImageToImageFilter.h:129
itk::VnlInverseFFTImageFilter::InputSizeType
typename InputImageType::SizeType InputSizeType
Definition: itkVnlInverseFFTImageFilter.h:54
itk::Concept::DivisionOperators
Definition: itkConceptChecking.h:473
itkConceptMacro
#define itkConceptMacro(name, concept)
Definition: itkConceptChecking.h:65
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24
itk::ProcessObject
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Definition: itkProcessObject.h:138
itk::InverseFFTImageFilter::InputPixelType
typename InputImageType::PixelType InputPixelType
Definition: itkInverseFFTImageFilter.h:58
itk::VnlInverseFFTImageFilter::InputSizeValueType
typename InputImageType::SizeValueType InputSizeValueType
Definition: itkVnlInverseFFTImageFilter.h:55
itk::SizeValueType
unsigned long SizeValueType
Definition: itkIntTypes.h:83
itk::ImageSource::OutputImageType
TOutputImage OutputImageType
Definition: itkImageSource.h:90