Changeset 32699 for trunk/psphot/src/psphotSourceStats.c
- Timestamp:
- Nov 17, 2011, 2:42:54 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotSourceStats.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotSourceStats.c
r32633 r32699 101 101 102 102 // generate the array of sources, define the associated pixel 103 bool firstPass = false; 104 if (!detections->newSources) { 105 detections->newSources = psArrayAllocEmpty (peaks->n); 106 firstPass = true; 107 } 108 sources = detections->newSources; 103 psAssert (!detections->newSources, "programming error"); 104 sources = detections->newSources = psArrayAllocEmpty (peaks->n); 105 106 bool firstPass = (detections->allSources == NULL); 109 107 110 108 // if there are no peaks, we save the empty source array and return
Note:
See TracChangeset
for help on using the changeset viewer.
