Changeset 3182 for trunk/psLib/src/image/psImageStats.c
- Timestamp:
- Feb 9, 2005, 4:36:42 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/image/psImageStats.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/image/psImageStats.c
r3115 r3182 9 9 * @author GLG, MHPCC 10 10 * 11 * @version $Revision: 1.6 4$ $Name: not supported by cvs2svn $12 * @date $Date: 2005-02- 03 00:54:11$11 * @version $Revision: 1.65 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2005-02-10 02:36:42 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 139 139 for (i = 0; i < n; i++) { 140 140 tmp = (double)(n - i); 141 tmp = ( M_PI * (tmp - 0.5)) / ((double)n);141 tmp = (PS_PI * (tmp - 0.5)) / ((double)n); 142 142 scalingFactors[i] = cos(tmp); 143 143 } … … 348 348 // Chebyshev polynomials are 0. 349 349 for (x = 0; x < input->numRows; x++) { 350 double xTmp = cos( M_PI * (0.5 + ((float) x)) / ((float) input->numRows));350 double xTmp = cos(PS_PI * (0.5 + ((float) x)) / ((float) input->numRows)); 351 351 double xNode = - ((xTmp + bma + bpa) - 1.0); 352 352 double xOrig = ((float) input->numRows) * (xNode - min) / (max - min); 353 353 354 354 for (y = 0; y < input->numCols; y++) { 355 double yTmp = cos( M_PI * (0.5 + ((float) y)) / ((float) input->numCols));355 double yTmp = cos(PS_PI * (0.5 + ((float) y)) / ((float) input->numCols)); 356 356 double yNode = - ((yTmp + bma + bpa) - 1.0); 357 357 double yOrig = ((float) input->numCols) * (yNode - min) / (max - min);
Note:
See TracChangeset
for help on using the changeset viewer.
