ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkPhaseSymmetryImageFilter.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 itkPhaseSymmetryImageFilter_h
19#define itkPhaseSymmetryImageFilter_h
20
22#include "itkArray2D.h"
24#include "itkConceptChecking.h"
27#include "itkAddImageFilter.h"
28#include "itkSqrtImageFilter.h"
31#include "itkExpImageFilter.h"
33#include "itkAtan2ImageFilter.h"
34#include "itkAcosImageFilter.h"
40#include "itkImageAdaptor.h"
48#include "itkAbsImageFilter.h"
49
50#include <vector>
51#include <complex>
52
53namespace itk
54{
55
64template <typename TInputImage, typename TOutputImage>
65class PhaseSymmetryImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
66{
67public:
68 ITK_DISALLOW_COPY_AND_MOVE(PhaseSymmetryImageFilter);
69
75
77 itkNewMacro(Self);
78
80 itkOverrideGetNameOfClassMacro(PhaseSymmetryImageFilter);
81
82 static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
83 static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension;
84
86 using InputImageType = TInputImage;
87 using InputImagePointer = typename InputImageType::Pointer;
88 using InputImageRegionType = typename InputImageType::RegionType;
89 using InputImagePixelType = typename InputImageType::PixelType;
90
91 using OutputImageType = TOutputImage;
92 using OutputImagePointer = typename OutputImageType::Pointer;
93 using OutputImageRegionType = typename OutputImageType::RegionType;
94 using OutputImagePixelType = typename OutputImageType::PixelType;
95
98 using ComplexPixelType = std::complex<ComplexPixelComponentType>;
99
103
105
106 itkSetMacro(Wavelengths, MatrixType);
107 itkSetMacro(Orientations, MatrixType);
108 itkSetMacro(AngleBandwidth, double);
109 itkSetMacro(Sigma, double);
110 itkSetMacro(NoiseThreshold, double);
111 itkSetMacro(Polarity, int);
112
113
114 void
119
120
121protected:
123 ~PhaseSymmetryImageFilter() override = default;
124 void
125 PrintSelf(std::ostream & os, Indent indent) const override;
126
128 void
130
132 void
134
135 void
136 GenerateData() override;
137
138 static const int FFT_FORWARD = -1;
139 static const int FFT_BACKWARD = 1;
140
144
145
146 using FloatImageStack = std::vector<typename FloatImageType::Pointer>;
147 using FloatImageBank = std::vector<FloatImageStack>;
148
160
161
165
177
178private:
181
183 double m_Sigma;
186
194
197
208
210
212};
213
214} // end namespace itk
215
216#ifndef ITK_MANUAL_INSTANTIATION
217# include "itkPhaseSymmetryImageFilter.hxx"
218#endif
219
220#endif
Computes the absolute value of each pixel.
Computes the inverse cosine of each pixel.
Pixel-wise addition of two images.
Array2D class representing a 2D array.
Definition itkArray2D.h:43
Computes two argument inverse tangent.
Computes 1/(1+x) for each pixel in the image.
Implements an API to enable the Fourier transform or the inverse Fourier transform of images with com...
Computes pixel-wise the imaginary part of a complex image.
Computes pixel-wise the Modulus of a complex image.
Computes pixel-wise the modulus of a complex image.
Computes pixel-wise the real(x) part of a complex image.
ComposeImageFilter combine several scalar images into a multicomponent image.
Pixel-wise division of two images.
Computes the exponential function of each pixel.
Shift the zero-frequency components of a Fourier transform to the center of the image.
Simulate a standard C array with copy semantics.
Base class for forward Fast Fourier Transform.
Image< std::complex< typename InputImageType::PixelType >, InputImageType::ImageDimension > OutputImageType
Templated n-dimensional image class.
Definition itkImage.h:89
Control indentation during Print() invocation.
Definition itkIndent.h:53
Implements pixel-wise conversion of magnitude and phase data into complex voxels.
Implements a pixel-wise operator Max(a,b) between two images.
Pixel-wise multiplication of two images.
Image< ImagePixelType, InputImageDimension > FloatImageType
~PhaseSymmetryImageFilter() override=default
FixedArray< double, InputImageDimension > ArrayType
typename OutputImageType::Pointer OutputImagePointer
void GenerateInputRequestedRegion() override
DivideImageFilter< FloatImageType, FloatImageType, FloatImageType > DivideImageFilterType
AddImageFilter< FloatImageType, FloatImageType > AddImageFilterType
Atan2ImageFilter< FloatImageType, FloatImageType, FloatImageType > Atan2ImageFilterType
static constexpr unsigned int InputImageDimension
ComplexToComplexFFTImageFilter< ComplexImageType > IFFTFilterType
AbsImageFilterType::Pointer m_AbsImageFilter2
ImageToImageFilter< TInputImage, TOutputImage > Superclass
FFTShiftImageFilter< FloatImageType, FloatImageType > DoubleFFTShiftImageFilterType
ComplexToRealImageFilter< ComplexImageType, FloatImageType > ComplexToRealFilterType
ComposeImageFilter< FloatImageType, ComplexImageType > RealAndImaginaryToComplexFilterType
typename OutputImageType::RegionType OutputImageRegionType
typename OutputImageType::PixelType OutputImagePixelType
FixedArray< double, InputImageDimension - 1 > DimMinusOneDoubleArrayType
typename FFTFilterType::OutputImageType ComplexImageType
ForwardFFTImageFilter< InputImageType > FFTFilterType
ExpImageFilter< FloatImageType, FloatImageType > ExpImageFilterType
typename InputImageType::Pointer InputImagePointer
ComplexToImaginaryImageFilter< ComplexImageType, FloatImageType > ComplexToImaginaryFilterType
SmartPointer< const Self > ConstPointer
AbsImageFilterType::Pointer m_AbsImageFilter
SteerableFilterFreqImageSource< FloatImageType > SteerableFiltersFreqImageSourceType
Atan2ImageFilterType::Pointer m_AtanImageFilter
ShiftScaleImageFilterType::Pointer m_NegateFilter2
ComplexToModulusImageFilter< ComplexImageType, FloatImageType > ComplexToModulusFilterType
MultiplyImageFilter< FloatImageType, FloatImageType > MultiplyImageFilterType
ComplexToImaginaryFilterType::Pointer m_C2IFilter
typename InputImageType::PixelType InputImagePixelType
void PrintSelf(std::ostream &os, Indent indent) const override
ShiftScaleImageFilterType::Pointer m_NegateFilter
ComplexToModulusFilterType::Pointer m_C2MFilter
BoundedReciprocalImageFilter< FloatImageType, FloatImageType > BoundedReciprocalImageFilterType
ShiftScaleImageFilter< FloatImageType, FloatImageType > ShiftScaleImageFilterType
MaxImageFilterType::Pointer m_MaxImageFilter
MagnitudeAndPhaseToComplexFilterType::Pointer m_MP2CFilter
SqrtImageFilter< FloatImageType, FloatImageType > SqrtImageFilterType
typename InputImageType::RegionType InputImageRegionType
DivideImageFilterType::Pointer m_DivideImageFilter
MagnitudeAndPhaseToComplexImageFilter< InputImageType, InputImageType, ComplexImageType > MagnitudeAndPhaseToComplexFilterType
ComplexToPhaseFilterType::Pointer m_C2AFilter
AbsImageFilter< FloatImageType, FloatImageType > AbsImageFilterType
AcosImageFilter< FloatImageType, FloatImageType > AcosImageFilterType
std::vector< FloatImageStack > FloatImageBank
MultiplyImageFilterType::Pointer m_MultiplyImageFilter
ShiftScaleImageFilterType::Pointer m_ShiftScaleFilter
FFTShiftImageFilter< ComplexImageType, ComplexImageType > ComplexFFTShiftImageFilterType
LogGaborFreqImageSource< FloatImageType > LogGaborFreqImageSourceType
ComplexToPhaseImageFilter< ComplexImageType, FloatImageType > ComplexToPhaseFilterType
std::vector< typename FloatImageType::Pointer > FloatImageStack
void GenerateOutputInformation() override
MaximumImageFilter< FloatImageType, FloatImageType > MaxImageFilterType
ButterworthFilterFreqImageSource< FloatImageType > ButterworthKernelFreqImageSourceType
static constexpr unsigned int OutputImageDimension
ComplexToRealFilterType::Pointer m_C2RFilter
AddImageFilterType::Pointer m_AddImageFilter2
MultiplyImageFilter< ComplexImageType, ComplexImageType > ComplexMultiplyImageFilterType
SquareImageFilter< FloatImageType, FloatImageType > SquareImageFilterType
AddImageFilterType::Pointer m_AddImageFilter
std::complex< ComplexPixelComponentType > ComplexPixelType
AcosImageFilterType::Pointer m_AcosImageFilter
Shift and scale the pixels in an image.
Implements transparent reference counting.
Computes the square root of each pixel.
Computes the square of the intensity values pixel-wise.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
#define itkSetMacro(name, type)