Changeset 4316 for trunk/psLib/src/fft
- Timestamp:
- Jun 17, 2005, 5:13:02 PM (21 years ago)
- Location:
- trunk/psLib/src/fft
- Files:
-
- 2 edited
-
psImageFFT.c (modified) (6 diffs)
-
psImageFFT.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/fft/psImageFFT.c
r4193 r4316 5 5 * @author Robert DeSonia, MHPCC 6 6 * 7 * @version $Revision: 1.1 5$ $Name: not supported by cvs2svn $8 * @date $Date: 2005-06- 09 21:17:45$7 * @version $Revision: 1.16 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2005-06-18 03:13:02 $ 9 9 * 10 10 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 27 27 static psBool p_fftwWisdomImported = false; 28 28 29 psImage* psImageFFT(psImage* out, const psImage* i n, psFFTFlags direction)29 psImage* psImageFFT(psImage* out, const psImage* image, psFFTFlags direction) 30 30 { 31 31 psU32 numCols; … … 35 35 36 36 /* got good image data? */ 37 if (i n== NULL) {37 if (image == NULL) { 38 38 psFree(out); 39 39 return NULL; … … 60 60 } 61 61 62 type = i n->type.type;62 type = image->type.type; 63 63 64 64 /* make sure the system-level wisdom information is imported. */ … … 68 68 } 69 69 70 numRows = i n->numRows;71 numCols = i n->numCols;70 numRows = image->numRows; 71 numCols = image->numCols; 72 72 73 73 // n.b. FFTW can perform a in-place transform at the same rate or faster than out-of-place. … … 75 75 76 76 fftwf_complex* outBuffer = fftwf_malloc(numRows*numCols*sizeof(fftwf_complex)); 77 p_psImageCopyToRawBuffer(outBuffer, i n, PS_TYPE_C32);77 p_psImageCopyToRawBuffer(outBuffer, image, PS_TYPE_C32); 78 78 79 79 plan = fftwf_plan_dft_2d(numRows, numCols, -
trunk/psLib/src/fft/psImageFFT.h
r4162 r4316 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1. 4$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-06- 08 23:40:45$9 * @version $Revision: 1.5 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-06-18 03:13:02 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 33 33 psImage* psImageFFT( 34 34 psImage* out, ///< a psImage to recycle. If NULL, a new psImage is made. 35 const psImage* i n, ///< the psImage to apply transform to35 const psImage* image, ///< the psImage to apply transform to 36 36 psFFTFlags direction ///< the direction of the transform 37 37 );
Note:
See TracChangeset
for help on using the changeset viewer.
