ITK  4.8.0
Insight Segmentation and Registration Toolkit
itkFullToHalfHermitianImageFilter.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 itkFullToHalfHermitianImageFilter_h
19 #define itkFullToHalfHermitianImageFilter_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(FullToHalfHermitianImageFilter,
76 
78  itkStaticConstMacro(ImageDimension, unsigned int,
79  TInputImage::ImageDimension);
80 
83  itkGetDecoratedOutputMacro(ActualXDimensionIsOdd, bool);
84 
85 protected:
88 
89  void ThreadedGenerateData(const OutputImageRegionType & outputRegionForThread,
90  ThreadIdType threadId) ITK_OVERRIDE;
91 
93  virtual void GenerateOutputInformation() ITK_OVERRIDE;
94 
96  virtual void GenerateInputRequestedRegion() ITK_OVERRIDE;
97 
98  itkSetDecoratedOutputMacro(ActualXDimensionIsOdd, bool);
99 
100 private:
101  FullToHalfHermitianImageFilter(const Self &); // purposely not implemented
102  void operator=(const Self &); // purposely not implemented
103 };
104 } // end namespace itk
105 
106 #ifndef ITK_MANUAL_INSTANTIATION
107 #include "itkFullToHalfHermitianImageFilter.hxx"
108 #endif
109 
110 #endif // itkFullToHalfHermitianImageFilter_h
Light weight base class for most itk classes.
signed long IndexValueType
Definition: itkIntTypes.h:150
unsigned long SizeValueType
Definition: itkIntTypes.h:143
ImageToImageFilter< TInputImage, TInputImage > Superclass
InputImageType::IndexValueType InputImageIndexValueType
OutputImageType::SizeValueType OutputImageSizeValueType
unsigned int ThreadIdType
Definition: itkIntTypes.h:159
Base class for filters that take an image as input and produce an image as output.
virtual void GenerateOutputInformation() override
void ThreadedGenerateData(const OutputImageRegionType &outputRegionForThread, ThreadIdType threadId) override
Reduces the size of a full complex image produced from a forward discrete Fourier transform of a real...
virtual void GenerateInputRequestedRegion() override
OutputImageType::IndexValueType OutputImageIndexValueType