Changeset 7757 for trunk/ppImage/src/ppFocusFitFWHM.c
- Timestamp:
- Jun 29, 2006, 10:47:55 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/ppImage/src/ppFocusFitFWHM.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppImage/src/ppFocusFitFWHM.c
r7738 r7757 7 7 psPolynomial1D *poly = psPolynomial1DAlloc (PS_POLYNOMIAL_ORD, 2); 8 8 9 psVectorFitPolynomial1D (poly, NULL, 0, fwhm, NULL, focus); 9 poly = psVectorFitPolynomial1D (poly, NULL, 0, fwhm, NULL, focus); 10 if (!poly) { 11 psError (PS_ERR_UNKNOWN, false, "failed to fit focus/fwhm trend; invalid image data?"); 12 return false; 13 } 10 14 11 15 if (poly->coeff[2] <= 0.0) { … … 19 23 psLogMsg ("ppFocus", 3, "fwhm @ min: %f\n", psPolynomial1DEval (poly, minFocus)); 20 24 25 psFree (poly); 21 26 return true; 22 27 }
Note:
See TracChangeset
for help on using the changeset viewer.
