ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkAnalyticSignalImageFilter.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 itkAnalyticSignalImageFilter_h
19#define itkAnalyticSignalImageFilter_h
20
21#include <complex>
22
26
27namespace itk
28{
55template <typename TInputImage, typename TOutputImage>
56class ITK_TEMPLATE_EXPORT AnalyticSignalImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
57{
58public:
59 ITK_DISALLOW_COPY_AND_MOVE(AnalyticSignalImageFilter);
60
62 using InputImageType = TInputImage;
63 using OutputImageType = TOutputImage;
64 using OutputImageRegionType = typename OutputImageType::RegionType;
65
66 static constexpr unsigned int ImageDimension = InputImageType::ImageDimension;
67
72
73 itkOverrideGetNameOfClassMacro(AnalyticSignalImageFilter);
74 itkNewMacro(Self);
75
77
79 virtual unsigned int
81 {
82 return this->m_FFTRealToComplexFilter->GetDirection();
83 }
84
86 virtual void
87 SetDirection(const unsigned int direction)
88 {
89 if (this->m_FFTRealToComplexFilter->GetDirection() != direction)
90 {
91 this->m_FFTRealToComplexFilter->SetDirection(direction);
92 this->m_FFTComplexToComplexFilter->SetDirection(direction);
93 if (this->m_FrequencyFilter.IsNotNull())
94 {
95 this->m_FrequencyFilter->SetDirection(direction);
96 }
97 this->Modified();
98 }
99 }
100
101 virtual void
103 {
104 if (filter != this->m_FrequencyFilter.GetPointer())
105 {
106 this->m_FrequencyFilter = filter;
107 this->m_FrequencyFilter->SetDirection(this->GetDirection());
108 this->Modified();
109 }
110 }
111
112protected:
114 ~AnalyticSignalImageFilter() override = default;
115
116 void
117 PrintSelf(std::ostream & os, Indent indent) const override;
118
119 // These behave like their analogs in Forward1DFFTImageFilter.
120 void
122 void
124
125 void
126 GenerateData() override;
127
130
133
134private:
136};
137} // namespace itk
138
139#ifndef ITK_MANUAL_INSTANTIATION
140# include "itkAnalyticSignalImageFilter.hxx"
141#endif
142
143#endif // itkAnalyticSignalImageFilter_h
ComplexToComplex1DFFTImageFilter< OutputImageType, OutputImageType > FFTComplexToComplexType
typename OutputImageType::RegionType OutputImageRegionType
FrequencyDomain1DImageFilter< OutputImageType, OutputImageType > FrequencyFilterType
Forward1DFFTImageFilter< InputImageType, OutputImageType > FFTRealToComplexType
virtual void SetFrequencyFilter(FrequencyFilterType *filter)
void GenerateInputRequestedRegion() override
virtual void SetDirection(const unsigned int direction)
ImageToImageFilter< InputImageType, OutputImageType > Superclass
virtual unsigned int GetDirection() const
void EnlargeOutputRequestedRegion(DataObject *output) override
void PrintSelf(std::ostream &os, Indent indent) const override
~AnalyticSignalImageFilter() override=default
Perform the Fast Fourier Transform, complex input to complex output, but only along one dimension.
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...
Filter a frequency domain along a single direction.
Control indentation during Print() invocation.
Definition itkIndent.h:53
virtual void Modified() const
Implements transparent reference counting.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....