Changeset 4316 for trunk/psLib/src/fft/psImageFFT.c
- Timestamp:
- Jun 17, 2005, 5:13:02 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/fft/psImageFFT.c (modified) (6 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,
Note:
See TracChangeset
for help on using the changeset viewer.
