Changeset 17870 for trunk/psphot/src/psphotFindFootprints.c
- Timestamp:
- May 30, 2008, 4:09:46 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotFindFootprints.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotFindFootprints.c
r17516 r17870 18 18 PS_ASSERT (status, false); 19 19 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? 22 22 23 float threshold = PS_SQR(FOOTPRINT_NSIGMA_LIMIT) /effArea;23 float threshold = PS_SQR(FOOTPRINT_NSIGMA_LIMIT); 24 24 25 25 int growRadius = 0; … … 31 31 PS_ASSERT (status, false); 32 32 33 // XXX do we need to use the same threshold here as for peaks? does it make sense for34 // these to be different?35 36 33 // find the raw footprints & assign the peaks to those footprints 37 34 psArray *footprints = pmFootprintsFind (significance, threshold, npixMin); … … 39 36 // XXX handle the error conditions here 40 37 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 43 39 psFree (detections->peaks); 44 40
Note:
See TracChangeset
for help on using the changeset viewer.
