IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 25661


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)

Location:
branches/eam_branches/20090715/psphot/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/20090715/psphot/src/psphot.h

    r25621 r25661  
    8686psImage        *psphotSignificanceImage (pmReadout *readout, psMetadata *recipe, const int pass, psImageMaskType maskVal);
    8787psArray        *psphotFindPeaks (psImage *significance, pmReadout *readout, psMetadata *recipe, const float threshold, const int nMax);
    88 bool            psphotFindFootprints (pmDetections *detections, psImage *significance, pmReadout *readout, psMetadata *recipe, const int pass, psImageMaskType maskVal);
     88bool            psphotFindFootprints (pmDetections *detections, psImage *significance, pmReadout *readout, psMetadata *recipe, const float threshold, const int pass, psImageMaskType maskVal);
    8989psErrorCode     psphotCullPeaks(const psImage *img, const psImage *weight, const psMetadata *recipe, psArray *footprints);
    9090
  • branches/eam_branches/20090715/psphot/src/psphotFindDetections.c

    r21183 r25661  
    5252    // optionally merge peaks into footprints
    5353    if (useFootprints) {
    54         psphotFindFootprints (detections, significance, readout, recipe, pass, maskVal);
     54        psphotFindFootprints (detections, significance, readout, recipe, threshold, pass, maskVal);
    5555    }
    5656
  • 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.