ITK  4.9.0
Insight Segmentation and Registration Toolkit
itkFFTWRealToHalfHermitianForwardFFTImageFilter.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 itkFFTWRealToHalfHermitianForwardFFTImageFilter_h
19 #define itkFFTWRealToHalfHermitianForwardFFTImageFilter_h
20 
22 
23 #include "itkFFTWCommon.h"
24 
25 namespace itk
26 {
53 template< typename TInputImage, typename TOutputImage=Image< std::complex<typename TInputImage::PixelType>, TInputImage::ImageDimension> >
55  public RealToHalfHermitianForwardFFTImageFilter< TInputImage, TOutputImage >
56 {
57 public:
59  typedef TInputImage InputImageType;
60  typedef typename InputImageType::PixelType InputPixelType;
61  typedef typename InputImageType::SizeType InputSizeType;
62  typedef TOutputImage OutputImageType;
63  typedef typename OutputImageType::PixelType OutputPixelType;
64  typedef typename OutputImageType::SizeType OutputSizeType;
65 
70 
77 
79  itkNewMacro(Self);
80 
84 
86  itkStaticConstMacro(ImageDimension, unsigned int, InputImageType::ImageDimension);
87 
96  virtual void SetPlanRigor( const int & value )
97  {
98  // Use that method to check the value
100  if( m_PlanRigor != value )
101  {
102  m_PlanRigor = value;
103  this->Modified();
104  }
105  }
106  itkGetConstReferenceMacro( PlanRigor, int );
108 
109  SizeValueType GetSizeGreatestPrimeFactor() const ITK_OVERRIDE;
110 
111 protected:
113  ~FFTWRealToHalfHermitianForwardFFTImageFilter() {}
114 
115  virtual void GenerateData() ITK_OVERRIDE;
116 
117  virtual void UpdateOutputData(DataObject *output) ITK_OVERRIDE;
118 
119  void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
120 
121 private:
122  FFTWRealToHalfHermitianForwardFFTImageFilter(const Self&) ITK_DELETE_FUNCTION;
123  void operator=(const Self&) ITK_DELETE_FUNCTION;
124 
126 
128 };
129 } // namespace itk
130 
131 #ifndef ITK_MANUAL_INSTANTIATION
132 #include "itkFFTWRealToHalfHermitianForwardFFTImageFilter.hxx"
133 #endif
134 
135 #endif //itkFFTWRealToHalfHermitianForwardFFTImageFilter_h
SizeValueType GetSizeGreatestPrimeFactor() const override
static std::string GetPlanRigorName(const int &value)
virtual void UpdateOutputData(DataObject *output) override
void PrintSelf(std::ostream &os, Indent indent) const override
Base class for all process objects that output image data.
unsigned long SizeValueType
Definition: itkIntTypes.h:143
RealToHalfHermitianForwardFFTImageFilter< TInputImage, TOutputImage > Superclass
virtual void Modified() const
Control indentation during Print() invocation.
Definition: itkIndent.h:49
Base class for specialized real-to-complex forward Fast Fourier Transform.
Base class for all data objects in ITK.