Changeset 11714 for trunk/psLib/src/fft/psImageFFT.c
- Timestamp:
- Feb 8, 2007, 1:56:02 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/fft/psImageFFT.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/fft/psImageFFT.c
r11703 r11714 6 6 /// @author Robert DeSonia, MHPCC 7 7 /// 8 /// @version $Revision: 1.2 1$ $Name: not supported by cvs2svn $9 /// @date $Date: 2007-02-08 04:17:58$8 /// @version $Revision: 1.22 $ $Name: not supported by cvs2svn $ 9 /// @date $Date: 2007-02-08 23:56:02 $ 10 10 /// 11 11 /// Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 129 129 psF32 *target = psAlloc(2 * numCols * numRows * PSELEMTYPE_SIZEOF(PS_TYPE_F32)); // Target for FFTW 130 130 fftwf_complex *in = fftwf_malloc(numCols * numRows * sizeof(fftwf_complex)); // Input data 131 131 132 for (int y = 0, index = 0; y < numRows; y++) { 132 133 for (int x = 0; x < numCols; index++, x++) { … … 156 157 // while the output doesn't. 157 158 for (int y = 0, index = 0; y < numRows; y++, index += origCols) { 158 memcpy(&(*out)->data.F32[y][0], &target[index], num Rows * PSELEMTYPE_SIZEOF(PS_TYPE_F32));159 memcpy(&(*out)->data.F32[y][0], &target[index], numCols * PSELEMTYPE_SIZEOF(PS_TYPE_F32)); 159 160 } 160 161 psFree(target);
Note:
See TracChangeset
for help on using the changeset viewer.
