IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 12, 2005, 3:49:21 PM (21 years ago)
Author:
eugene
Message:

rework with masks and noise array

File:
1 edited

Legend:

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

    r4215 r4216  
    1616    NSIGMA = psMetadataLookupF32 (&status, config, "SMOOTH_NSIGMA");
    1717
    18     psImage *image  = imdata->image;
    19     psImage *smooth = psImageCopy (NULL, image, PS_TYPE_F32);
     18    psImage *smooth = psImageCopy (NULL, imdata->image, PS_TYPE_F32);
    2019    psImageSmooth (smooth, SIGMA, NSIGMA);
    2120
    2221    psLogMsg ("psphot", 4, "smooth: %f sec\n", psTimerMark ("psphot"));
    23 
    2422
    2523    // find the peaks in the smoothed image
     
    3331    psArray *peaks = pmFindImagePeaks (smooth, threshold);
    3432    if (peaks == NULL) psAbort ("find peaks", "no peaks found");
     33    psFree (smooth);
    3534    // XXX Need to gracefully handle no source detections
    3635
Note: See TracChangeset for help on using the changeset viewer.