ITK  4.9.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  *=========================================================================*/
18 #ifndef itkVnlInverseFFTImageFilter_h
19 #define itkVnlInverseFFTImageFilter_h
20 
22 
23 #include "itkImage.h"
24 #include "vnl/algo/vnl_fft_base.h"
25 
26 namespace itk
27 {
44 template< typename TInputImage, typename TOutputImage=Image< typename TInputImage::PixelType::value_type, TInputImage::ImageDimension> >
46  public InverseFFTImageFilter< TInputImage, TOutputImage >
47 {
48 public:
50  typedef TInputImage InputImageType;
51  typedef typename InputImageType::PixelType InputPixelType;
52  typedef typename InputImageType::SizeType InputSizeType;
54  typedef TOutputImage OutputImageType;
55  typedef typename OutputImageType::PixelType OutputPixelType;
56  typedef typename OutputImageType::SizeType OutputSizeType;
57 
62 
64  itkNewMacro(Self);
65 
67  itkTypeMacro(VnlInverseFFTImageFilter,
69 
72  itkStaticConstMacro(ImageDimension, unsigned int,
73  TOutputImage::ImageDimension);
74  itkStaticConstMacro(InputImageDimension, unsigned int,
75  TInputImage::ImageDimension);
76  itkStaticConstMacro(OutputImageDimension, unsigned int,
77  TOutputImage::ImageDimension);
79 
80  SizeValueType GetSizeGreatestPrimeFactor() const ITK_OVERRIDE;
81 
82 #ifdef ITK_USE_CONCEPT_CHECKING
83  // Begin concept checking
84  itkConceptMacro( PixelUnsignedIntDivisionOperatorsCheck,
86  itkConceptMacro( ImageDimensionsMatchCheck,
88  // End concept checking
89 #endif
90 
91 protected:
94 
95  virtual void GenerateData() ITK_OVERRIDE; // generates output from input
96 
97 private:
98  VnlInverseFFTImageFilter(const Self &) ITK_DELETE_FUNCTION;
99  void operator=(const Self &) ITK_DELETE_FUNCTION;
100 
102 };
103 }
104 
105 #ifndef ITK_MANUAL_INSTANTIATION
106 #include "itkVnlInverseFFTImageFilter.hxx"
107 #endif
108 
109 #endif
Base class for inverse Fast Fourier Transform.
OutputImageType::SizeType OutputSizeType
static const unsigned int ImageDimension
SizeValueType GetSizeGreatestPrimeFactor() const override
InputImageType::PixelType InputPixelType
Base class for all process objects that output image data.
OutputImageType::PixelType OutputPixelType
unsigned long SizeValueType
Definition: itkIntTypes.h:143
InputImageType::SizeValueType InputSizeValueType
InverseFFTImageFilter< TInputImage, TOutputImage > Superclass
typedef(Concept::DivisionOperators< OutputPixelType, unsigned int >) PixelUnsignedIntDivisionOperatorsCheck
vnl_vector< InputPixelType > SignalVectorType
SmartPointer< const Self > ConstPointer
InputImageType::PixelType InputPixelType
virtual void GenerateData() override
VNL-based reverse Fast Fourier Transform.
static const unsigned int InputImageDimension
#define itkConceptMacro(name, concept)
static const unsigned int OutputImageDimension