IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 14, 2011, 3:07:22 PM (15 years ago)
Author:
eugene
Message:

psphotSignificanceImage now returns a pmReadout so we can keep the smoothed signal image as well as the S/N image; psphotCullPeaks (and pmFootprintCullPeaks) now uses the smooted image to cull the peaks -- this deals better with low-significance detections are large, low-surface brightness areas

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20110213/psphot/src/psphotFindFootprints.c

    r30624 r30903  
    11# include "psphotInternal.h"
    22
    3 bool psphotFindFootprints (pmDetections *detections, psImage *significance, pmReadout *readout, psMetadata *recipe, const float threshold, const int pass, psImageMaskType maskVal) {
     3bool psphotFindFootprints (pmDetections *detections, pmReadout *significance, pmReadout *readout, psMetadata *recipe, const float threshold, const int pass, psImageMaskType maskVal) {
    44
    55    bool status;
     
    1818    PS_ASSERT (status, false);
    1919
    20     // find the raw footprints & assign the peaks to those footprints
    21     psArray *footprints = pmFootprintsFind (significance, threshold, npixMin);
     20    // find the raw footprints in the smoothed significance image & assign the peaks to those footprints
     21    psArray *footprints = pmFootprintsFind (significance->variance, threshold, npixMin);
    2222
    2323    if (pmFootprintsAssignPeaks(footprints, detections->peaks) != PS_ERR_NONE) {
     
    5656    }
    5757
    58     psphotCullPeaks(readout, recipe, detections->footprints);
     58    psphotCullPeaks(readout, significance, recipe, detections->footprints);
    5959    detections->peaks = pmFootprintArrayToPeaks(detections->footprints);
    6060    psLogMsg ("psphot", PS_LOG_INFO, "%ld peaks, %ld total footprints: %f sec\n", detections->peaks->n, detections->footprints->n, psTimerMark ("psphot.footprints"));
Note: See TracChangeset for help on using the changeset viewer.