Changeset 11674 for trunk/psLib/src/math/psMinimizePolyFit.c
- Timestamp:
- Feb 6, 2007, 3:15:50 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/math/psMinimizePolyFit.c (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/math/psMinimizePolyFit.c
r10999 r11674 10 10 * @author EAM, IfA 11 11 * 12 * @version $Revision: 1. 29$ $Name: not supported by cvs2svn $13 * @date $Date: 2007-0 1-09 22:38:53$12 * @version $Revision: 1.30 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2007-02-07 01:15:49 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 1221 1221 if (!psVectorFitPolynomial2D(poly, mask, maskValue, f, fErr, x, y)) { 1222 1222 psError(PS_ERR_UNKNOWN, false, "Could not fit a polynomial to the data. Returning false.\n"); 1223 psFree(resid) 1223 psFree(resid); 1224 1224 return false; 1225 1225 } … … 1228 1228 if (fit == NULL) { 1229 1229 psError(PS_ERR_UNKNOWN, false, "Could not call psPolynomial3DEvalVector(). Returning NULL.\n"); 1230 psFree(resid) 1230 psFree(resid); 1231 1231 return false; 1232 1232 } … … 1253 1253 if (!psVectorStats(stats, resid, NULL, mask, maskValue)) { 1254 1254 psError(PS_ERR_UNKNOWN, false, "Could not compute statistics on the resid vector. Returning NULL.\n"); 1255 psFree(resid) 1256 psFree(fit) 1255 psFree(resid); 1256 psFree(fit); 1257 1257 return false; 1258 1258 } … … 1670 1670 if (!psVectorFitPolynomial3D(poly, mask, maskValue, f, fErr, x, y, z)) { 1671 1671 psError(PS_ERR_UNKNOWN, false, "Could not fit a polynomial to the data. Returning NULL.\n"); 1672 psFree(resid) 1672 psFree(resid); 1673 1673 return false; 1674 1674 } … … 1676 1676 if (fit == NULL) { 1677 1677 psError(PS_ERR_UNKNOWN, false, "Could not call psPolynomial3DEvalVector(). Returning NULL.\n"); 1678 psFree(resid) 1678 psFree(resid); 1679 1679 return false; 1680 1680 } … … 1700 1700 if (!psVectorStats(stats, resid, NULL, mask, maskValue)) { 1701 1701 psError(PS_ERR_UNKNOWN, false, "Could not compute statistics on the resid vector. Returning NULL.\n"); 1702 psFree(resid) 1703 psFree(fit) 1702 psFree(resid); 1703 psFree(fit); 1704 1704 return false; 1705 1705 } … … 2144 2144 if (!psVectorFitPolynomial4D (poly, mask, maskValue, f, fErr, x, y, z, t)) { 2145 2145 psError(PS_ERR_UNKNOWN, false, "Could not fit a polynomial to the data. Returning NULL.\n"); 2146 psFree(resid) 2146 psFree(resid); 2147 2147 return false; 2148 2148 } … … 2151 2151 if (fit == NULL) { 2152 2152 psError(PS_ERR_UNKNOWN, false, "Could not call psPolynomial4DEvalVector(). Returning NULL.\n"); 2153 psFree(resid) 2153 psFree(resid); 2154 2154 return false; 2155 2155 } … … 2175 2175 if (!psVectorStats (stats, resid, NULL, mask, maskValue)) { 2176 2176 psError(PS_ERR_UNKNOWN, false, "Could not compute statistics on the resid vector. Returning NULL.\n"); 2177 psFree(resid) 2178 psFree(fit) 2177 psFree(resid); 2178 psFree(fit); 2179 2179 return false; 2180 2180 }
Note:
See TracChangeset
for help on using the changeset viewer.
