ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
rtkFFTHilbertImageFilter.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright RTK 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 * 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
19#ifndef rtkFFTHilbertImageFilter_h
20#define rtkFFTHilbertImageFilter_h
21
22#include "rtkConfiguration.h"
24#include "rtkMacro.h"
25#include <itkConceptChecking.h>
26
27namespace rtk
28{
29
39
40template <class TInputImage, class TOutputImage = TInputImage, class TFFTPrecision = double>
41class ITK_EXPORT FFTHilbertImageFilter
42 : public rtk::FFTProjectionsConvolutionImageFilter<TInputImage, TOutputImage, TFFTPrecision>
43{
44public:
45 ITK_DISALLOW_COPY_AND_MOVE(FFTHilbertImageFilter);
46
52
54 using InputImageType = TInputImage;
55 using OutputImageType = TOutputImage;
56 using FFTPrecisionType = TFFTPrecision;
57 using IndexType = typename InputImageType::IndexType;
58 using SizeType = typename InputImageType::SizeType;
59
61 using FFTInputImagePointer = typename FFTInputImageType::Pointer;
63 using FFTOutputImagePointer = typename FFTOutputImageType::Pointer;
64
66 itkNewMacro(Self);
67
68 itkGetMacro(PixelShift, double);
69 // The Set macro is redefined to clear the current FFT kernel when a parameter
70 // is modified.
71 virtual void
72 SetPixelShift(const double _arg)
73 {
74 itkDebugMacro("setting PixelShift to " << _arg);
77 if (this->m_PixelShift != _arg)
78 {
79 this->m_PixelShift = _arg;
80 this->Modified();
81 this->m_KernelFFT = nullptr;
82 }
84 }
85
87 itkOverrideGetNameOfClassMacro(FFTHilbertImageFilter);
88
89protected:
91 ~FFTHilbertImageFilter() override = default;
92
93 void
95
98 void
100
101private:
103 double m_PixelShift{};
104
105}; // end of class
106
107} // end namespace rtk
108
109#ifndef ITK_MANUAL_INSTANTIATION
110# include "rtkFFTHilbertImageFilter.hxx"
111#endif
112
113#endif
virtual void Modified() const
Implements transparent reference counting.
void UpdateFFTProjectionsConvolutionKernel(SizeType s) override
typename InputImageType::SizeType SizeType
typename InputImageType::IndexType IndexType
typename Superclass::FFTOutputImageType FFTOutputImageType
rtk::FFTProjectionsConvolutionImageFilter< TInputImage, TOutputImage, TFFTPrecision > Superclass
typename FFTOutputImageType::Pointer FFTOutputImagePointer
itk::SmartPointer< Self > Pointer
typename Superclass::FFTInputImageType FFTInputImageType
typename FFTInputImageType::Pointer FFTInputImagePointer
~FFTHilbertImageFilter() override=default
itk::SmartPointer< const Self > ConstPointer
void GenerateOutputInformation() override
virtual void SetPixelShift(const double _arg)
Base class for 1D or 2D FFT based convolution of projections.
typename itk::Image< TFFTPrecision, TInputImage::ImageDimension > FFTInputImageType
typename itk::Image< std::complex< TFFTPrecision >, TInputImage::ImageDimension > FFTOutputImageType
#define CLANG_PRAGMA_POP
Definition rtkMacro.h:39
#define CLANG_SUPPRESS_Wfloat_equal
Definition rtkMacro.h:40
#define CLANG_PRAGMA_PUSH
Definition rtkMacro.h:38