IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 13, 2004, 1:16:19 PM (22 years ago)
Author:
eugene
Message:

psFloatArray, psDoubleArray, psIntArray, etc merged into
psVector. psVector is analogous to psImage. reference to the old
forms have been converted to psVector. the file psStdArrays.h has
been removed and replaced with psVector.h (containing the vector
functions) and psTypes.h (containing the basic data types)

File:
1 edited

Legend:

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

    r613 r671  
    1414 */
    1515
    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 */
    1719psImage *
    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     );
     20psImageFFT(const psImage *image,        ///< image to transform (if forward, may be real)
     21           int dir)                     ///< FFT direction (1: forward, -1: reverse)
     22;
    3523
    3624/** Calculate power spectrum of an image */
    3725psImage *
    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. */
     26psImagePowerSpectrum(const psImage *image) ///< Image to obtain power spectrum of
     27;
    4728
    4829/** Get the real part of an image */
    4930psImage *
    5031psImageReal(psImage *out,               ///< Image for output (or NULL)
    51             const psImage *in           ///< Image to get the real part of
    52             );
     32            const psImage *in)          ///< Image to get the real part of
     33;
    5334
    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 */
     36psImage *
     37psImageImaginary(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 */
     42psImage *
     43psImageComplex(psImage *out,            ///< Image for output (or NULL)
     44               const psImage *real)     ///< real part of image
     45               const psImage *imag)     ///< imaginary part of image
     46;
    5947
    6048/** Get the complex conjugate of an image */
    6149psImage *
    6250psImageConjugate(psImage *out,          ///< Image for output (or NULL)
    63                  const psImage *in      ///< Image to get the complex conjugate of
    64     );
     51                 const psImage *in)     ///< Image to get the complex conjugate of
     52;
    6553
    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 */
     57psVector *
     58psVectorFFT(const psVector *vector)     ///< Vector to transform
     59;
     60
     61/** Calculate power spectrum of a vector of floating-point numbers */
     62psVector *
     63psVectorPowerSpectrum(const psVector *vector) ///< Vector to obtain power spectrum of
     64;
     65
     66/** Get the real part of a vector */
     67psVector *
     68psVectorReal(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 */
     73psVector *
     74psVectorImaginary(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 */
     79psVector *
     80psVectorComplex(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 */
     86psVector *
     87psVectorConjugate(psVector *out,        ///< Vector for output (or NULL)
     88                  const psVector *in)   ///< Vector to get the complex conjugate of
     89;
    7190
    7291/* \} */ // End of MathGroup Functions
Note: See TracChangeset for help on using the changeset viewer.