Changeset 5096 for trunk/psLib/src/imageops/psImageStats.c
- Timestamp:
- Sep 22, 2005, 12:49:29 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/imageops/psImageStats.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/imageops/psImageStats.c
r5090 r5096 9 9 * @author GLG, MHPCC 10 10 * 11 * @version $Revision: 1. 79$ $Name: not supported by cvs2svn $12 * @date $Date: 2005-09-22 02:47:16$11 * @version $Revision: 1.80 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2005-09-22 22:49:29 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 349 349 // Free the Chebyshev polynomials that were 350 350 // created in this routine. 351 for (i = 0; i < maxChebyPoly ; i++) {351 for (i = 0; i < maxChebyPoly + 1; i++) { 352 352 psFree(chebPolys[i]); 353 353 } … … 453 453 maxChebyPoly = coeffs->COOL_2D_nY; 454 454 } 455 chebPolys = 1 + p_psCreateChebyshevPolys(maxChebyPoly);455 chebPolys = p_psCreateChebyshevPolys(maxChebyPoly + 1); 456 456 457 457 // Compute the sums[][] data structure. … … 498 498 // Free the Chebyshev polynomials that were 499 499 // created in this routine. 500 for (i = 0; i < maxChebyPoly ; i++) {500 for (i = 0; i < maxChebyPoly + 1; i++) { 501 501 psFree(chebPolys[i]); 502 502 } … … 545 545 } 546 546 547 chebPolys = 1 + p_psCreateChebyshevPolys(maxChebyPoly);547 chebPolys = p_psCreateChebyshevPolys(maxChebyPoly + 1); 548 548 549 549 for (x = 0; x < input->numRows; x++) { … … 574 574 // created in this routine. 575 575 // XXX: Use static data structures here. 576 for (i = 0; i < maxChebyPoly ; i++) {576 for (i = 0; i < maxChebyPoly + 1; i++) { 577 577 psFree(chebPolys[i]); 578 578 }
Note:
See TracChangeset
for help on using the changeset viewer.
