Changeset 825 for trunk/archive/pslib/include/psFFT.h
- Timestamp:
- Jun 1, 2004, 3:21:16 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/archive/pslib/include/psFFT.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/archive/pslib/include/psFFT.h
r753 r825 14 14 */ 15 15 16 17 /** Specify direction of FFT, and if the result is real or not */ 18 typedef enum { 19 PS_FFT_FORWARD = 0, ///< psImageFFT/psVectorFFT should perform a forward FFT. 20 PS_FFT_REVERSE = 1, ///< psImageFFT/psVectorFFT should perform a reverse FFT. 21 PS_FFT_REAL_RESULT = 2 ///< psImageFFT/psVectorFFT should return a real image. This is valid 22 ///< for only reverse FFT, i.e., the psImageFFT/psVectorFFT flag 23 ///< parameter should appear as PS_FFT_REVERSE+PS_FFT_REAL_RESULT. 24 } psFFTFlags; 25 26 16 27 /**** Vector FFT & Complex functions ****/ 17 28 18 29 /** FFT a vector. in: psF32 or psC32, out: psC32 */ 19 30 psVector * 20 psVectorFFT(const psVector *vector, ///< Vector to transform 21 int dir) ///< FFT direction (1: forward, -1: reverse) 31 psVectorFFT(psVector *out, ///< Vector for output (or NULL) 32 const psVector *vector, ///< Vector to transform 33 psFFTFlags dir) ///< FFT direction 22 34 ; 23 35 24 36 /** Calculate power spectrum of a vector of floating-point numbers */ 25 37 psVector * 26 psVectorPowerSpectrum(const psVector *vector) ///< Vector to obtain power spectrum of 38 psVectorPowerSpectrum(psVector *out, ///< Vector for output (or NULL) 39 const psVector *vector) ///< Vector to obtain power spectrum of 27 40 ; 28 41 … … 36 49 psVector * 37 50 psVectorImaginary(psVector *out, ///< Vector for output (or NULL) 38 const psVector *in) ///< Vector to get the imaginary part of51 const psVector *in) ///< Vector to get the imaginary part of 39 52 ; 40 53 … … 42 55 psVector * 43 56 psVectorComplex(psVector *out, ///< Vector for output (or NULL) 44 const psVector *real, ///< real part of vector45 const psVector *imag) ///< imaginary part of vector57 const psVector *real, ///< real part of vector 58 const psVector *imag) ///< imaginary part of vector 46 59 ; 47 60 … … 56 69 /** FFT an image. in: psF32 or psC32, out: psC32 */ 57 70 psImage * 58 psImageFFT(const psImage *image, ///< image to transform (if forward, may be real) 59 int dir) ///< FFT direction (1: forward, -1: reverse) 71 psImageFFT(psImage *out, ///< Image for output (or NULL) 72 const psImage *image, ///< image to transform (if forward, may be real) 73 psFFTFlags dir) ///< FFT direction 60 74 ; 61 75 62 76 /** Calculate power spectrum of an image */ 63 77 psImage * 64 psImagePowerSpectrum(const psImage *image) ///< Image to obtain power spectrum of 78 psImagePowerSpectrum(psImage *out, ///< Image for output (or NULL) 79 const psImage *image) ///< Image to obtain power spectrum of 65 80 ; 66 81
Note:
See TracChangeset
for help on using the changeset viewer.
