IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 1, 2004, 3:21:16 PM (22 years ago)
Author:
Paul Price
Message:

Added outputs to the input variables (e.g., psVector *out); bug 44.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/archive/pslib/include/psFFT.h

    r753 r825  
    1414 */
    1515
     16
     17/** Specify direction of FFT, and if the result is real or not */
     18typedef 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
    1627/**** Vector FFT & Complex functions ****/
    1728
    1829/** FFT a vector. in: psF32 or psC32, out: psC32 */
    1930psVector *
    20 psVectorFFT(const psVector *vector,     ///< Vector to transform
    21            int dir)                     ///< FFT direction (1: forward, -1: reverse)
     31psVectorFFT(psVector *out,              ///< Vector for output (or NULL)
     32            const psVector *vector,     ///< Vector to transform
     33            psFFTFlags dir)             ///< FFT direction
    2234;
    2335
    2436/** Calculate power spectrum of a vector of floating-point numbers */
    2537psVector *
    26 psVectorPowerSpectrum(const psVector *vector) ///< Vector to obtain power spectrum of
     38psVectorPowerSpectrum(psVector *out,    ///< Vector for output (or NULL)
     39                      const psVector *vector) ///< Vector to obtain power spectrum of
    2740;
    2841
     
    3649psVector *
    3750psVectorImaginary(psVector *out,        ///< Vector for output (or NULL)
    38              const psVector *in)        ///< Vector to get the imaginary part of
     51                  const psVector *in)   ///< Vector to get the imaginary part of
    3952;
    4053
     
    4255psVector *
    4356psVectorComplex(psVector *out,          ///< Vector for output (or NULL)
    44                const psVector *real,    ///< real part of vector
    45                const psVector *imag)    ///< imaginary part of vector
     57                const psVector *real,   ///< real part of vector
     58                const psVector *imag)   ///< imaginary part of vector
    4659;
    4760
     
    5669/** FFT an image.  in: psF32 or psC32, out: psC32 */
    5770psImage *
    58 psImageFFT(const psImage *image,        ///< image to transform (if forward, may be real)
    59            int dir)                     ///< FFT direction (1: forward, -1: reverse)
     71psImageFFT(psImage *out,                ///< Image for output (or NULL)
     72           const psImage *image,        ///< image to transform (if forward, may be real)
     73           psFFTFlags dir)              ///< FFT direction
    6074;
    6175
    6276/** Calculate power spectrum of an image */
    6377psImage *
    64 psImagePowerSpectrum(const psImage *image) ///< Image to obtain power spectrum of
     78psImagePowerSpectrum(psImage *out,      ///< Image for output (or NULL)
     79                     const psImage *image) ///< Image to obtain power spectrum of
    6580;
    6681
Note: See TracChangeset for help on using the changeset viewer.