IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 28, 2005, 7:04:10 AM (21 years ago)
Author:
eugene
Message:

cleanup memory leaks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/find_peaks.c

    r4216 r4642  
    99
    1010    // smooth the image
    11     // should we also subtract a super-binned image? (as an option?)
    1211
    1312    psTimerStart ("psphot");
     
    1817    psImage *smooth = psImageCopy (NULL, imdata->image, PS_TYPE_F32);
    1918    psImageSmooth (smooth, SIGMA, NSIGMA);
    20 
    2119    psLogMsg ("psphot", 4, "smooth: %f sec\n", psTimerMark ("psphot"));
    22 
    23     // find the peaks in the smoothed image
    2420
    2521    psTimerStart ("psphot");
    2622
     23    // find the peaks in the smoothed image
    2724    NSIGMA    = psMetadataLookupF32 (&status, config, "PEAK_NSIGMA");
    2825    threshold = NSIGMA*sky->sampleStdev + sky->sampleMean;
     
    3229    if (peaks == NULL) psAbort ("find peaks", "no peaks found");
    3330    psFree (smooth);
    34     // XXX Need to gracefully handle no source detections
    3531
    3632    // make this optional
     
    4137    return (peaks);
    4238}
     39
     40// In this function, we smooth the image, then search for the peaks
     41// Should we also subtract a super-binned image? (as an option?)
     42// We need to gracefully handle no source detections
Note: See TracChangeset for help on using the changeset viewer.