Changeset 671 for trunk/archive/pslib/include/psFFT.h
- Timestamp:
- May 13, 2004, 1:16:19 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/archive/pslib/include/psFFT.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/archive/pslib/include/psFFT.h
r613 r671 14 14 */ 15 15 16 /** Forward FFT an image. Returns a complex float image. */ 16 /**** Image FFT & Complex functions ****/ 17 18 /** FFT an image. in: psF32 or psC32, out: psC32 */ 17 19 psImage * 18 psImageFFT(const psImage *image ///< Image to transform 19 ); 20 21 /** Forward FFT an array of floating-point numbers. */ 22 psFloatArray * 23 psFloatArrayFFT(const psFloatArray *arr ///< Array to transform 24 ); 25 26 /** Inverse FFT an image. */ 27 psImage * 28 psImageInverseFFT(const psImage *fftImage ///< FFT-ed image to inverse-transform 29 ); 30 31 /** Inverse FFT an array of complex floating-point numbers */ 32 psComplexArray * 33 psComplexArrayInverseFFT(const psComplexArray *fftArray ///< FFT-ed array to inverse-transform 34 ); 20 psImageFFT(const psImage *image, ///< image to transform (if forward, may be real) 21 int dir) ///< FFT direction (1: forward, -1: reverse) 22 ; 35 23 36 24 /** Calculate power spectrum of an image */ 37 25 psImage * 38 psImagePowerSpectrum(const psImage *image ///< Image to obtain power spectrum of 39 ); 40 41 /** Calculate power spectrum of an array of floating-point numbers */ 42 psFloatArray * 43 psFloatArrayPowerSpectrum(const psFloatArray *arr ///< Array to obtain power spectrum of 44 ); 45 46 /* The below functions are provided to allow cross-correlations etc. */ 26 psImagePowerSpectrum(const psImage *image) ///< Image to obtain power spectrum of 27 ; 47 28 48 29 /** Get the real part of an image */ 49 30 psImage * 50 31 psImageReal(psImage *out, ///< Image for output (or NULL) 51 const psImage *in ///< Image to get the real part of52 );32 const psImage *in) ///< Image to get the real part of 33 ; 53 34 54 /** Get the real part of an array of complex floating-point numbers */ 55 psFloatArray * 56 psComplexArrayReal(psFloatArray *out, ///< Array for output (or NULL) 57 const psComplexArray *in ///< Array to get the real part of 58 ); 35 /** Get the imaginary part of an image */ 36 psImage * 37 psImageImaginary(psImage *out, ///< Image for output (or NULL) 38 const psImage *in) ///< Image to get the imaginary part of 39 ; 40 41 /** Construct a complex image from real & imaginary parts */ 42 psImage * 43 psImageComplex(psImage *out, ///< Image for output (or NULL) 44 const psImage *real) ///< real part of image 45 const psImage *imag) ///< imaginary part of image 46 ; 59 47 60 48 /** Get the complex conjugate of an image */ 61 49 psImage * 62 50 psImageConjugate(psImage *out, ///< Image for output (or NULL) 63 const psImage *in ///< Image to get the complex conjugate of64 );51 const psImage *in) ///< Image to get the complex conjugate of 52 ; 65 53 66 /** Get the complex conjugate of an array of complex floating-point numbers */ 67 psComplexArray * 68 psComplexArrayConjugate(psComplexArray *out, ///< Array for output (or NULL) 69 const psComplexArray *in ///< Array to get the complex conjugate of 70 ); 54 /**** Vector FFT & Complex functions ****/ 55 56 /** FFT a vector. in: psF32 or psC32, out: psC32 */ 57 psVector * 58 psVectorFFT(const psVector *vector) ///< Vector to transform 59 ; 60 61 /** Calculate power spectrum of a vector of floating-point numbers */ 62 psVector * 63 psVectorPowerSpectrum(const psVector *vector) ///< Vector to obtain power spectrum of 64 ; 65 66 /** Get the real part of a vector */ 67 psVector * 68 psVectorReal(psVector *out, ///< Vector for output (or NULL) 69 const psVector *in) ///< Vector to get the real part of 70 ; 71 72 /** Get the imaginary part of a vector */ 73 psVector * 74 psVectorImaginary(psVector *out, ///< Vector for output (or NULL) 75 const psVector *in) ///< Vector to get the imaginary part of 76 ; 77 78 /** Construct a complex vector from real & imaginary parts */ 79 psVector * 80 psVectorComplex(psVector *out, ///< Vector for output (or NULL) 81 const psVector *real) ///< real part of vector 82 const psVector *imag) ///< imaginary part of vector 83 ; 84 85 /** Get the complex conjugate of an vector of complex floating-point numbers */ 86 psVector * 87 psVectorConjugate(psVector *out, ///< Vector for output (or NULL) 88 const psVector *in) ///< Vector to get the complex conjugate of 89 ; 71 90 72 91 /* \} */ // End of MathGroup Functions
Note:
See TracChangeset
for help on using the changeset viewer.
