ITK  6.0.0
Insight Toolkit
itkForward1DFFTImageFilter.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright NumFOCUS
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 * https://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 itkForward1DFFTImageFilter_h
19#define itkForward1DFFTImageFilter_h
20
21#include <complex>
22
24#include "itkMacro.h"
25
26namespace itk
27{
42template <typename TInputImage,
43 typename TOutputImage = Image<std::complex<typename TInputImage::PixelType>, TInputImage::ImageDimension>>
44class ITK_TEMPLATE_EXPORT Forward1DFFTImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
45{
46public:
47 ITK_DISALLOW_COPY_AND_MOVE(Forward1DFFTImageFilter);
48
50 using InputImageType = TInputImage;
51 using OutputImageType = TOutputImage;
53
58
60 static constexpr unsigned int ImageDimension = InputImageType::ImageDimension;
61
62 itkOverrideGetNameOfClassMacro(Forward1DFFTImageFilter);
63
70
72 itkGetConstMacro(Direction, unsigned int);
73
75 itkSetClampMacro(Direction, unsigned int, 0, InputImageType::ImageDimension - 1);
76
78 virtual SizeValueType
80 {
81 return 2;
82 }
83
84protected:
86 ~Forward1DFFTImageFilter() override = default;
87
88 void
89 PrintSelf(std::ostream & os, Indent indent) const override;
90
91 void
93 void
95
96private:
99 unsigned int m_Direction{ 0 };
100};
101} // namespace itk
102
103#ifndef ITK_MANUAL_INSTANTIATION
104# include "itkForward1DFFTImageFilter.hxx"
105#endif
106
107#ifdef ITK_FFTIMAGEFILTERINIT_FACTORY_REGISTER_MANAGER
108# include "itkFFTImageFilterInitFactoryRegisterManager.h"
109#endif
110
111#endif // itkForward1DFFTImageFilter_h
Base class for all data objects in ITK.
Perform the Fast Fourier Transform, in the forward direction, with real inputs, but only along one di...
~Forward1DFFTImageFilter() override=default
void EnlargeOutputRequestedRegion(DataObject *output) override
void GenerateInputRequestedRegion() override
void PrintSelf(std::ostream &os, Indent indent) const override
typename OutputImageType::RegionType OutputImageRegionType
virtual SizeValueType GetSizeGreatestPrimeFactor() const
Base class for filters that take an image as input and produce an image as output.
Control indentation during Print() invocation.
Definition: itkIndent.h:50
Light weight base class for most itk classes.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
unsigned long SizeValueType
Definition: itkIntTypes.h:86