Changeset 33910 for trunk/psphot/src/psphotMergeSources.c
- Timestamp:
- May 24, 2012, 3:37:59 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotMergeSources.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotMergeSources.c
r33444 r33910 744 744 psAssert (readoutOut, "missing readout?"); 745 745 746 pmDetections *detectionsOutOld = psMetadataLookupPtr (&status, readoutOut->analysis, "PSPHOT.DETECTIONS"); 747 psArray *oldFootprints = detectionsOutOld ? detectionsOutOld->footprints : NULL; 748 746 749 // replace any existing DETECTION container on readoutOut->analysis with the new one 747 750 pmDetections *detectionsOut = pmDetectionsAlloc(); 751 if (oldFootprints) { 752 // ... but hang on to any existing footprints so that they can be merged with new footprints in pass 2 753 detectionsOut->footprints = psMemIncrRefCounter(oldFootprints); 754 } 748 755 detectionsOut->allSources = psArrayAllocEmpty (100); 749 756 if (!psMetadataAddPtr (readoutOut->analysis, PS_LIST_TAIL, "PSPHOT.DETECTIONS", PS_META_REPLACE | PS_DATA_UNKNOWN, "psphot detections", detectionsOut)) {
Note:
See TracChangeset
for help on using the changeset viewer.
