Changeset 33889 for trunk/psphot/src/psphotFindDetections.c
- Timestamp:
- May 17, 2012, 4:08:53 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotFindDetections.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotFindDetections.c
r33761 r33889 48 48 // Use the new pmFootprints approach? 49 49 const bool useFootprints = psMetadataLookupBool(NULL, recipe, "USE_FOOTPRINTS"); 50 const bool footprintsUseUnsubtracted = psMetadataLookupBool(NULL, recipe, "FOOTPRINT_USE_UNSUBTRACTED"); 50 51 51 52 pmDetections *detections = psMetadataLookupPtr (&status, readout->analysis, "PSPHOT.DETECTIONS"); … … 64 65 } 65 66 67 bool replaceSourcesForFootprints = false; 66 68 if (firstPass) { 67 69 pass = 1; … … 70 72 } else { 71 73 pass = 2; 74 // XXX change this to a recipe value 75 replaceSourcesForFootprints = footprintsUseUnsubtracted; 72 76 NSIGMA_PEAK = psMetadataLookupF32 (&status, recipe, "PEAKS_NSIGMA_LIMIT_2"); PS_ASSERT (status, NULL); 73 77 NMAX = 0; // unlimited number of peaks in final pass: allow a limit (PEAKS_NMAX_2) ? … … 116 120 // optionally merge peaks into footprints 117 121 if (useFootprints) { 122 if (replaceSourcesForFootprints) { 123 psphotAddOrSubNoiseReadout(config, view, filerule, index, recipe, false); 124 psphotReplaceAllSourcesReadout (config, view, filerule, index, recipe, false); 125 psFree (significance); 126 significance = psphotSignificanceImage (readout, recipe, maskVal); 127 } 128 118 129 psphotFindFootprints (detections, significance, readout, recipe, threshold, pass, maskVal); 130 131 if (replaceSourcesForFootprints) { 132 psphotRemoveAllSourcesReadout (config, view, filerule, index, recipe, false); 133 } 119 134 } 120 135
Note:
See TracChangeset
for help on using the changeset viewer.
