ITK  6.0.0
Insight Toolkit
itkVnlHalfHermitianToRealInverseFFTImageFilter.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  * https://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  *=========================================================================*/
18 #ifndef itkVnlHalfHermitianToRealInverseFFTImageFilter_h
19 #define itkVnlHalfHermitianToRealInverseFFTImageFilter_h
20 
22 
23 #include "itkVnlFFTCommon.h"
24 #include "itkImage.h"
25 #include "vnl/algo/vnl_fft_base.h"
26 
28 
29 namespace itk
30 {
46 template <typename TInputImage,
47  typename TOutputImage = Image<typename TInputImage::PixelType::value_type, TInputImage::ImageDimension>>
49  : public HalfHermitianToRealInverseFFTImageFilter<TInputImage, TOutputImage>
50 {
51 public:
52  ITK_DISALLOW_COPY_AND_MOVE(VnlHalfHermitianToRealInverseFFTImageFilter);
53 
55  using InputImageType = TInputImage;
56  using InputPixelType = typename InputImageType::PixelType;
60  using OutputImageType = TOutputImage;
61  using OutputPixelType = typename OutputImageType::PixelType;
65 
70 
72  itkNewMacro(Self);
73 
75  itkOverrideGetNameOfClassMacro(VnlHalfHermitianToRealInverseFFTImageFilter);
76 
79  static constexpr unsigned int ImageDimension = TOutputImage::ImageDimension;
80  static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
81  static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension;
82 
84  GetSizeGreatestPrimeFactor() const override;
85 
86 #ifdef ITK_USE_CONCEPT_CHECKING
87  // Begin concept checking
88  itkConceptMacro(PixelUnsignedIntDivisionOperatorsCheck, (Concept::DivisionOperators<OutputPixelType, unsigned int>));
90  // End concept checking
91 #endif
92 
93 protected:
95  ~VnlHalfHermitianToRealInverseFFTImageFilter() override = default;
96 
97  void
98  GenerateData() override;
99 
100 private:
101  using SignalVectorType = vnl_vector<InputPixelType>;
102 };
103 
104 // Describe whether input/output are real- or complex-valued
105 // for factory registration
106 template <>
108 {
109  template <typename TUnderlying>
110  using InputPixelType = std::complex<TUnderlying>;
111  template <typename TUnderlying>
112  using OutputPixelType = TUnderlying;
113  using FilterDimensions = std::integer_sequence<unsigned int, 4, 3, 2, 1>;
114 };
115 
116 } // namespace itk
117 
118 #ifndef ITK_MANUAL_INSTANTIATION
119 # include "itkVnlHalfHermitianToRealInverseFFTImageFilter.hxx"
120 #endif
121 
122 #endif
itk::VnlHalfHermitianToRealInverseFFTImageFilter::OutputSizeType
typename OutputImageType::SizeType OutputSizeType
Definition: itkVnlHalfHermitianToRealInverseFFTImageFilter.h:63
itk::FFTImageFilterTraits< VnlHalfHermitianToRealInverseFFTImageFilter >::OutputPixelType
TUnderlying OutputPixelType
Definition: itkVnlHalfHermitianToRealInverseFFTImageFilter.h:112
itk::GTest::TypedefsAndConstructors::Dimension2::SizeType
ImageBaseType::SizeType SizeType
Definition: itkGTestTypedefsAndConstructors.h:49
itkImage.h
itk::VnlHalfHermitianToRealInverseFFTImageFilter::InputSizeValueType
typename InputImageType::SizeValueType InputSizeValueType
Definition: itkVnlHalfHermitianToRealInverseFFTImageFilter.h:59
itk::FFTImageFilterTraits
Helper defining pixel traits for templated FFT image filters.
Definition: itkFFTImageFilterFactory.h:42
itk::SmartPointer< Self >
itk::HalfHermitianToRealInverseFFTImageFilter::InputPixelType
typename InputImageType::PixelType InputPixelType
Definition: itkHalfHermitianToRealInverseFFTImageFilter.h:66
itk::IndexValueType
long IndexValueType
Definition: itkIntTypes.h:93
itk::HalfHermitianToRealInverseFFTImageFilter::OutputPixelType
typename OutputImageType::PixelType OutputPixelType
Definition: itkHalfHermitianToRealInverseFFTImageFilter.h:68
itk::Concept::SameDimension
Definition: itkConceptChecking.h:697
itk::GTest::TypedefsAndConstructors::Dimension2::IndexType
ImageBaseType::IndexType IndexType
Definition: itkGTestTypedefsAndConstructors.h:50
itk::ImageSource
Base class for all process objects that output image data.
Definition: itkImageSource.h:67
itk::VnlHalfHermitianToRealInverseFFTImageFilter::InputIndexType
typename InputImageType::IndexType InputIndexType
Definition: itkVnlHalfHermitianToRealInverseFFTImageFilter.h:58
itkVnlFFTCommon.h
itk::ImageToImageFilter::InputImageType
TInputImage InputImageType
Definition: itkImageToImageFilter.h:129
itk::Concept::DivisionOperators
Definition: itkConceptChecking.h:476
itkHalfHermitianToRealInverseFFTImageFilter.h
itk::FFTImageFilterTraits< VnlHalfHermitianToRealInverseFFTImageFilter >::InputPixelType
std::complex< TUnderlying > InputPixelType
Definition: itkVnlHalfHermitianToRealInverseFFTImageFilter.h:110
itk::VnlHalfHermitianToRealInverseFFTImageFilter::OutputIndexValueType
typename OutputImageType::IndexValueType OutputIndexValueType
Definition: itkVnlHalfHermitianToRealInverseFFTImageFilter.h:64
itkConceptMacro
#define itkConceptMacro(name, concept)
Definition: itkConceptChecking.h:65
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnatomicalOrientation.h:29
itk::FFTImageFilterTraits< VnlHalfHermitianToRealInverseFFTImageFilter >::FilterDimensions
std::integer_sequence< unsigned int, 4, 3, 2, 1 > FilterDimensions
Definition: itkVnlHalfHermitianToRealInverseFFTImageFilter.h:113
itk::ProcessObject
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Definition: itkProcessObject.h:139
itk::VnlHalfHermitianToRealInverseFFTImageFilter::InputSizeType
typename InputImageType::SizeType InputSizeType
Definition: itkVnlHalfHermitianToRealInverseFFTImageFilter.h:57
itkFFTImageFilterFactory.h
itk::VnlHalfHermitianToRealInverseFFTImageFilter::SignalVectorType
vnl_vector< InputPixelType > SignalVectorType
Definition: itkVnlHalfHermitianToRealInverseFFTImageFilter.h:101
itk::HalfHermitianToRealInverseFFTImageFilter
Base class for specialized complex-to-real inverse Fast Fourier Transform.
Definition: itkHalfHermitianToRealInverseFFTImageFilter.h:57
itk::VnlHalfHermitianToRealInverseFFTImageFilter::OutputIndexType
typename OutputImageType::IndexType OutputIndexType
Definition: itkVnlHalfHermitianToRealInverseFFTImageFilter.h:62
itk::SizeValueType
unsigned long SizeValueType
Definition: itkIntTypes.h:86
itk::ImageSource::OutputImageType
TOutputImage OutputImageType
Definition: itkImageSource.h:90
itk::VnlHalfHermitianToRealInverseFFTImageFilter
VNL-based reverse Fast Fourier Transform.
Definition: itkVnlHalfHermitianToRealInverseFFTImageFilter.h:48