IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 29, 2009, 10:09:53 AM (17 years ago)
Author:
eugene
Message:

use peak threshold for footprint threshold (they must match anyway)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/20090715/psphot/src/psphotFindFootprints.c

    r24274 r25661  
    11# include "psphotInternal.h"
    22
    3 bool psphotFindFootprints (pmDetections *detections, psImage *significance, pmReadout *readout, psMetadata *recipe, const int pass, psImageMaskType maskVal) {
     3bool psphotFindFootprints (pmDetections *detections, psImage *significance, pmReadout *readout, psMetadata *recipe, const float threshold, const int pass, psImageMaskType maskVal) {
    44
    55    bool status;
     
    99    int npixMin = psMetadataLookupS32(&status, recipe, "FOOTPRINT_NPIXMIN");
    1010    PS_ASSERT (status, false);
    11 
    12     float FOOTPRINT_NSIGMA_LIMIT;
    13     if (pass == 1) {
    14         FOOTPRINT_NSIGMA_LIMIT = psMetadataLookupS32(&status, recipe, "FOOTPRINT_NSIGMA_LIMIT");
    15     } else {
    16         FOOTPRINT_NSIGMA_LIMIT = psMetadataLookupS32(&status, recipe, "FOOTPRINT_NSIGMA_LIMIT_2");
    17     }
    18     PS_ASSERT (status, false);
    19 
    20     // XXX do we need to use the same threshold here as for peaks?  does it make sense for
    21     // these to be different?
    22 
    23     float threshold = PS_SQR(FOOTPRINT_NSIGMA_LIMIT);
    2411
    2512    int growRadius = 0;
Note: See TracChangeset for help on using the changeset viewer.