Changeset 25661
- Timestamp:
- Sep 29, 2009, 10:09:53 AM (17 years ago)
- Location:
- branches/eam_branches/20090715/psphot/src
- Files:
-
- 3 edited
-
psphot.h (modified) (1 diff)
-
psphotFindDetections.c (modified) (1 diff)
-
psphotFindFootprints.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/20090715/psphot/src/psphot.h
r25621 r25661 86 86 psImage *psphotSignificanceImage (pmReadout *readout, psMetadata *recipe, const int pass, psImageMaskType maskVal); 87 87 psArray *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);88 bool psphotFindFootprints (pmDetections *detections, psImage *significance, pmReadout *readout, psMetadata *recipe, const float threshold, const int pass, psImageMaskType maskVal); 89 89 psErrorCode psphotCullPeaks(const psImage *img, const psImage *weight, const psMetadata *recipe, psArray *footprints); 90 90 -
branches/eam_branches/20090715/psphot/src/psphotFindDetections.c
r21183 r25661 52 52 // optionally merge peaks into footprints 53 53 if (useFootprints) { 54 psphotFindFootprints (detections, significance, readout, recipe, pass, maskVal);54 psphotFindFootprints (detections, significance, readout, recipe, threshold, pass, maskVal); 55 55 } 56 56 -
branches/eam_branches/20090715/psphot/src/psphotFindFootprints.c
r24274 r25661 1 1 # include "psphotInternal.h" 2 2 3 bool psphotFindFootprints (pmDetections *detections, psImage *significance, pmReadout *readout, psMetadata *recipe, const int pass, psImageMaskType maskVal) {3 bool psphotFindFootprints (pmDetections *detections, psImage *significance, pmReadout *readout, psMetadata *recipe, const float threshold, const int pass, psImageMaskType maskVal) { 4 4 5 5 bool status; … … 9 9 int npixMin = psMetadataLookupS32(&status, recipe, "FOOTPRINT_NPIXMIN"); 10 10 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 for21 // these to be different?22 23 float threshold = PS_SQR(FOOTPRINT_NSIGMA_LIMIT);24 11 25 12 int growRadius = 0;
Note:
See TracChangeset
for help on using the changeset viewer.
