Changeset 10863 for trunk/psLib/src/math/psMinimizePolyFit.c
- Timestamp:
- Jan 1, 2007, 11:01:33 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/math/psMinimizePolyFit.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/math/psMinimizePolyFit.c
r10848 r10863 10 10 * @author EAM, IfA 11 11 * 12 * @version $Revision: 1.2 7$ $Name: not supported by cvs2svn $13 * @date $Date: 200 6-12-29 04:38:42$12 * @version $Revision: 1.28 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2007-01-01 21:01:33 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 126 126 psF64 ySum = 1.0; 127 127 128 // note that we are using the X and Y elements of the image reversed to be 129 // consistent with the other BuildSumsND functions in terms of the definition 130 // of the sums array 128 131 nXsum = 2*nXterm; 129 132 nYsum = 2*nYterm; 130 133 if (sums == NULL) { 131 sums = psImageAlloc(n Xsum, nYsum, PS_TYPE_F64);132 } 133 if ((n Xsum != sums->numCols) || (nYsum != sums->numRows)) {134 sums = psImageAlloc(nYsum, nXsum, PS_TYPE_F64); 135 } 136 if ((nYsum != sums->numCols) || (nXsum != sums->numRows)) { 134 137 psFree (sums); 135 sums = psImageAlloc(n Xsum, nYsum, PS_TYPE_F64);138 sums = psImageAlloc(nYsum, nXsum, PS_TYPE_F64); 136 139 } 137 140
Note:
See TracChangeset
for help on using the changeset viewer.
