ITK  4.9.0
Insight Segmentation and Registration Toolkit
itkHalfToFullHermitianImageFilter.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 itkHalfToFullHermitianImageFilter_h
19 #define itkHalfToFullHermitianImageFilter_h
20 
21 #include "itkImageToImageFilter.h"
23 
24 namespace itk
25 {
44 template< typename TInputImage >
46  public ImageToImageFilter< TInputImage, TInputImage >
47 {
48 public:
50  typedef TInputImage InputImageType;
51  typedef typename InputImageType::PixelType InputImagePixelType;
52  typedef typename InputImageType::IndexType InputImageIndexType;
54  typedef typename InputImageType::SizeType InputImageSizeType;
56  typedef typename InputImageType::RegionType InputImageRegionType;
57  typedef TInputImage OutputImageType;
58  typedef typename OutputImageType::PixelType OutputImagePixelType;
59  typedef typename OutputImageType::IndexType OutputImageIndexType;
61  typedef typename OutputImageType::SizeType OutputImageSizeType;
63  typedef typename OutputImageType::RegionType OutputImageRegionType;
64 
69 
71  itkNewMacro(Self);
72 
74  itkTypeMacro(HalfToFullHermitianImageFilter,
76 
78  itkStaticConstMacro(ImageDimension, unsigned int,
79  TInputImage::ImageDimension);
80 
82  itkSetGetDecoratedInputMacro(ActualXDimensionIsOdd, bool);
83  itkBooleanMacro(ActualXDimensionIsOdd);
85 
86 protected:
89 
90  void ThreadedGenerateData(const OutputImageRegionType & outputRegionForThread,
91  ThreadIdType threadId) ITK_OVERRIDE;
92 
94  virtual void GenerateOutputInformation() ITK_OVERRIDE;
95 
97  virtual void GenerateInputRequestedRegion() ITK_OVERRIDE;
98 
99 private:
100  HalfToFullHermitianImageFilter(const Self &) ITK_DELETE_FUNCTION;
101  void operator=(const Self &) ITK_DELETE_FUNCTION;
102 };
103 } // end namespace itk
104 
105 #ifndef ITK_MANUAL_INSTANTIATION
106 #include "itkHalfToFullHermitianImageFilter.hxx"
107 #endif
108 
109 #endif // itkHalfToFullHermitianImageFilter_h
ImageToImageFilter< TInputImage, TInputImage > Superclass
Light weight base class for most itk classes.
signed long IndexValueType
Definition: itkIntTypes.h:150
unsigned long SizeValueType
Definition: itkIntTypes.h:143
InputImageType::IndexValueType InputImageIndexValueType
void ThreadedGenerateData(const OutputImageRegionType &outputRegionForThread, ThreadIdType threadId) override
unsigned int ThreadIdType
Definition: itkIntTypes.h:159
virtual void GenerateOutputInformation() override
Base class for filters that take an image as input and produce an image as output.
OutputImageType::IndexValueType OutputImageIndexValueType
Expands a half image produced from a real-to-complex discrete Fourier transform (DFT) to the full com...
virtual void GenerateInputRequestedRegion() override
OutputImageType::SizeValueType OutputImageSizeValueType