Changeset 317
- Timestamp:
- Mar 30, 2004, 2:42:30 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
r314 r317 24 24 p_psFFTDetails *details; //!< Details on FFT implementation (private) 25 25 int nx, ny; //!< Size in x and y 26 float * *real; //!< Data in real space26 float *real; //!< Data in real space: a 2D array using the [nx*y + x] stuff 27 27 void *fourier; //!< Data in fourier space; implementation dependent 28 28 } psFFT; … … 46 46 /** Forward FFT: from real to fourier space */ 47 47 psFFT * 48 psFFTForward Transform(psFFT *fft//!< FFT to apply (input and output)49 );48 psFFTForward(psFFT *fft //!< FFT to apply (input and output) 49 ); 50 50 51 51 /** Reverse FFT: from fourier to real space */ 52 52 psFFT * 53 psFFTReverse Transform(psFFT *fft//!< FFT to apply (input and output)54 );53 psFFTReverse(psFFT *fft //!< FFT to apply (input and output) 54 ); 55 55 56 56 /** Apply filter function in fourier space */ … … 67 67 ); 68 68 69 /** Calculate cross-correlation function */ 69 /** Calculate FFT of the cross-correlation. Multiplication of the first FFT with the complex conjugate of 70 * the second. 71 */ 70 72 psFFT * 71 73 psFFTCrossCorrelate(psFFT *out //!< Output FFT (or NULL) … … 73 75 ); 74 76 77 /** Calculate FFT of the convolution. Straight multiplication of the FFTs */ 78 psFFT * 79 psFFTConvolve(psFFT *out, //!< Output FFT (or NULL) 80 const psFFT *fft1, const psFFT *fft2 //!< FFTs to multiply 81 ); 82 75 83 /** Calculate power spectrum */ 76 psF FT*84 psFloatArray * 77 85 psFFTPowerSpec(psFFT *fft //!< FFT to use (input and output) 78 86 ); 79 80 /** Multiply two Fourier transforms, as for convolution */81 psFFT *82 psFFTMultiplyFT(psFFT *out, //!< Output FFT (or NULL)83 const psFFT *fft1, const psFFT *fft2 //!< FFTs to multiply84 );85 87 86 88 /* Convert the real data in the FFT struct to an image again */
Note:
See TracChangeset
for help on using the changeset viewer.
