IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 30, 2008, 4:09:46 PM (18 years ago)
Author:
eugene
Message:

fix errors in calculation of sig image; API change: sig image is now actual S/N2

File:
1 edited

Legend:

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

    r17516 r17870  
    1818    PS_ASSERT (status, false);
    1919
    20     float effArea = psMetadataLookupF32 (&status, recipe, "EFFECTIVE_AREA");
    21     psAssert (status, "EFFECTIVE_AREA missing: call psphotFindPeaks first");
     20    // XXX do we need to use the same threshold here as for peaks?  does it make sense for
     21    // these to be different?
    2222
    23     float threshold = PS_SQR(FOOTPRINT_NSIGMA_LIMIT)/effArea;
     23    float threshold = PS_SQR(FOOTPRINT_NSIGMA_LIMIT);
    2424
    2525    int growRadius = 0;
     
    3131    PS_ASSERT (status, false);
    3232
    33     // XXX do we need to use the same threshold here as for peaks?  does it make sense for
    34     // these to be different?
    35 
    3633    // find the raw footprints & assign the peaks to those footprints
    3734    psArray *footprints = pmFootprintsFind (significance, threshold, npixMin);
     
    3936    // XXX handle the error conditions here
    4037
    41     // footprints now owns the peaks; after culling (below), we will rebuild
    42     // the peaks array
     38    // footprints now owns the peaks; after culling (below), we will rebuild the peaks array
    4339    psFree (detections->peaks);
    4440
Note: See TracChangeset for help on using the changeset viewer.