ITK  5.0.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 >
45 class ITK_TEMPLATE_EXPORT FullToHalfHermitianImageFilter :
46  public ImageToImageFilter< TInputImage, TInputImage >
47 {
48 public:
49  ITK_DISALLOW_COPY_AND_ASSIGN(FullToHalfHermitianImageFilter);
50 
52  using InputImageType = TInputImage;
53  using InputImagePixelType = typename InputImageType::PixelType;
59  using OutputImageType = TInputImage;
60  using OutputImagePixelType = typename OutputImageType::PixelType;
66 
71 
73  itkNewMacro(Self);
74 
76  itkTypeMacro(FullToHalfHermitianImageFilter,
78 
80  static constexpr unsigned int ImageDimension = TInputImage::ImageDimension;
81 
84  itkGetDecoratedOutputMacro(ActualXDimensionIsOdd, bool);
85 
86 protected:
88  ~FullToHalfHermitianImageFilter() override = default;
89 
90  void DynamicThreadedGenerateData(const OutputImageRegionType & outputRegionForThread) override;
91 
92 
94  void GenerateOutputInformation() override;
95 
97  void GenerateInputRequestedRegion() override;
98 
99  itkSetDecoratedOutputMacro(ActualXDimensionIsOdd, bool);
100 };
101 } // end namespace itk
102 
103 #ifndef ITK_MANUAL_INSTANTIATION
104 #include "itkFullToHalfHermitianImageFilter.hxx"
105 #endif
106 
107 #endif // itkFullToHalfHermitianImageFilter_h
typename InputImageType::SizeType InputImageSizeType
typename InputImageType::IndexValueType InputImageIndexValueType
typename InputImageType::PixelType InputImagePixelType
typename InputImageType::IndexType InputImageIndexType
Light weight base class for most itk classes.
unsigned long SizeValueType
Definition: itkIntTypes.h:83
typename OutputImageType::PixelType OutputImagePixelType
signed long IndexValueType
Definition: itkIntTypes.h:90
typename OutputImageType::RegionType OutputImageRegionType
typename OutputImageType::IndexType OutputImageIndexType
typename OutputImageType::SizeType OutputImageSizeType
typename OutputImageType::IndexValueType OutputImageIndexValueType
typename OutputImageType::SizeValueType OutputImageSizeValueType
typename InputImageType::SizeValueType InputImageSizeValueType
Base class for filters that take an image as input and produce an image as output.
Reduces the size of a full complex image produced from a forward discrete Fourier transform of a real...
typename InputImageType::RegionType InputImageRegionType