IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 29, 2006, 10:47:55 AM (20 years ago)
Author:
eugene
Message:

fixed up focus

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppImage/src/ppFocusFitFWHM.c

    r7738 r7757  
    77    psPolynomial1D *poly = psPolynomial1DAlloc (PS_POLYNOMIAL_ORD, 2);
    88
    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    }
    1014
    1115    if (poly->coeff[2] <= 0.0) {
     
    1923    psLogMsg ("ppFocus", 3, "fwhm @ min: %f\n", psPolynomial1DEval (poly, minFocus));
    2024   
     25    psFree (poly);
    2126    return true;
    2227}
Note: See TracChangeset for help on using the changeset viewer.