ITK  5.0.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  *=========================================================================*/
19 
20 #ifndef itkFFTWRealToHalfHermitianForwardFFTImageFilter_h
21 #define itkFFTWRealToHalfHermitianForwardFFTImageFilter_h
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:
58  ITK_DISALLOW_COPY_AND_ASSIGN(FFTWRealToHalfHermitianForwardFFTImageFilter);
59 
61  using InputImageType = TInputImage;
62  using InputPixelType = typename InputImageType::PixelType;
64  using OutputImageType = TOutputImage;
65  using OutputPixelType = typename OutputImageType::PixelType;
67 
72 
79 
81  itkNewMacro(Self);
82 
86 
88  static constexpr unsigned int ImageDimension = InputImageType::ImageDimension;
89 
99  virtual void SetPlanRigor( const int & value )
100  {
101 #ifndef ITK_USE_CUFFTW
102  // Use that method to check the value
104 #endif
105  if( m_PlanRigor != value )
106  {
107  m_PlanRigor = value;
108  this->Modified();
109  }
110  }
111  itkGetConstReferenceMacro( PlanRigor, int );
113 
114  SizeValueType GetSizeGreatestPrimeFactor() const override;
115 
116 protected:
119 
120  void GenerateData() override;
121 
122  void UpdateOutputData(DataObject *output) override;
123 
124  void PrintSelf(std::ostream & os, Indent indent) const override;
125 
126 private:
128 
130 };
131 } // namespace itk
132 
133 #ifndef ITK_MANUAL_INSTANTIATION
134 #include "itkFFTWRealToHalfHermitianForwardFFTImageFilter.hxx"
135 #endif
136 
137 #endif //itkFFTWRealToHalfHermitianForwardFFTImageFilter_h
static std::string GetPlanRigorName(const int &value)
unsigned long SizeValueType
Definition: itkIntTypes.h:83
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Base class for all process objects that output image data.
TOutputImage OutputImageType
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.