ITK  4.9.0
Insight Segmentation and Registration Toolkit
itkFFTWInverseFFTImageFilter.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 itkFFTWInverseFFTImageFilter_h
19 #define itkFFTWInverseFFTImageFilter_h
20 
22 
23 #include "itkFFTWCommon.h"
24 
25 namespace itk
26 {
48 template< typename TInputImage, typename TOutputImage=Image< typename TInputImage::PixelType::value_type, TInputImage::ImageDimension> >
50  public InverseFFTImageFilter< TInputImage, TOutputImage >
51 {
52 public:
54  typedef TInputImage InputImageType;
55  typedef typename InputImageType::PixelType InputPixelType;
56  typedef typename InputImageType::SizeType InputSizeType;
57  typedef TOutputImage OutputImageType;
58  typedef typename OutputImageType::PixelType OutputPixelType;
59  typedef typename OutputImageType::SizeType OutputSizeType;
60 
65 
72 
73  typedef typename OutputImageType::RegionType OutputImageRegionType;
74 
76  itkNewMacro(Self);
77 
79  itkTypeMacro(FFTWInverseFFTImageFilter,
81 
83  itkStaticConstMacro(ImageDimension, unsigned int, InputImageType::ImageDimension);
84 
92  virtual void SetPlanRigor( const int & value )
93  {
94  // Use that method to check the value.
96  if( m_PlanRigor != value )
97  {
98  m_PlanRigor = value;
99  this->Modified();
100  }
101  }
102  itkGetConstReferenceMacro( PlanRigor, int );
103  void SetPlanRigor( const std::string & name )
104  {
106  }
108 
109  SizeValueType GetSizeGreatestPrimeFactor() const ITK_OVERRIDE;
110 
111 protected:
113  virtual ~FFTWInverseFFTImageFilter() {}
114 
115  virtual void BeforeThreadedGenerateData() ITK_OVERRIDE;
116 
117  void ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread,
118  ThreadIdType threadId ) ITK_OVERRIDE;
119 
120  void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
121 
122 private:
123  FFTWInverseFFTImageFilter(const Self&) ITK_DELETE_FUNCTION;
124  void operator=(const Self&) ITK_DELETE_FUNCTION;
125 
127 
128 };
129 
130 
131 } // namespace itk
132 
133 #ifndef ITK_MANUAL_INSTANTIATION
134 #include "itkFFTWInverseFFTImageFilter.hxx"
135 #endif
136 
137 #endif //itkFFTWInverseFFTImageFilter_h
Base class for inverse Fast Fourier Transform.
static std::string GetPlanRigorName(const int &value)
SizeValueType GetSizeGreatestPrimeFactor() const override
Base class for all process objects that output image data.
unsigned long SizeValueType
Definition: itkIntTypes.h:143
OutputImageType::PixelType OutputPixelType
FFTW-based inverse Fast Fourier Transform.
fftw::Proxy< OutputPixelType > FFTWProxyType
virtual void SetPlanRigor(const int &value)
InverseFFTImageFilter< InputImageType, OutputImageType > Superclass
OutputImageType::RegionType OutputImageRegionType
virtual void Modified() const
unsigned int ThreadIdType
Definition: itkIntTypes.h:159
void ThreadedGenerateData(const OutputImageRegionType &outputRegionForThread, ThreadIdType threadId) override
static int GetPlanRigorValue(const std::string &name)
Control indentation during Print() invocation.
Definition: itkIndent.h:49
void SetPlanRigor(const std::string &name)
virtual void BeforeThreadedGenerateData() override
void PrintSelf(std::ostream &os, Indent indent) const override