24 #ifndef vtkImageFourierFilter_h
25 #define vtkImageFourierFilter_h
44 #define vtkImageComplexEuclidSet(C, R, I) \
48 #define vtkImageComplexPolarSet(C, M, P) \
49 (C).Real = (M)*cos(P); \
52 #define vtkImageComplexPrint(C) \
53 printf("(%.3f, %.3f)", (C).Real, (C).Imag)
55 #define vtkImageComplexScale(cOut, S, cIn) \
56 (cOut).Real = (cIn).Real * (S); \
57 (cOut).Imag = (cIn).Imag * (S)
59 #define vtkImageComplexConjugate(cIn, cOut) \
60 (cOut).Imag = (cIn).Imag * -1.0; \
61 (cOut).Real = (cIn).Real
63 #define vtkImageComplexAdd(C1, C2, cOut) \
64 (cOut).Real = (C1).Real + (C2).Real; \
65 (cOut).Imag = (C1).Imag + (C2).Imag
67 #define vtkImageComplexSubtract(C1, C2, cOut) \
68 (cOut).Real = (C1).Real - (C2).Real; \
69 (cOut).Imag = (C1).Imag - (C2).Imag
71 #define vtkImageComplexMultiply(C1, C2, cOut) \
73 vtkImageComplex _vtkImageComplexMultiplyTemp; \
74 _vtkImageComplexMultiplyTemp.Real = (C1).Real*(C2).Real-(C1).Imag*(C2).Imag;\
75 _vtkImageComplexMultiplyTemp.Imag = (C1).Real*(C2).Imag+(C1).Imag*(C2).Real;\
76 cOut = _vtkImageComplexMultiplyTemp; \
80 #define vtkImageComplexExponential(cIn, cOut) \
82 double tmp = exp(cIn.Real); \
83 cOut.Real = tmp * cos(cIn.Imag); \
84 cOut.Imag = tmp * sin(cIn.Imag); \
116 int N,
int bsize,
int fb);
118 int N,
int bsize,
int n,
int fb);
#define VTKIMAGINGFOURIER_EXPORT
Superclass that implements complex numbers.
Filters that execute axes in series.