Changeset 6900 for trunk/psphot/src/psphotBasicDeblend.c
- Timestamp:
- Apr 18, 2006, 9:01:19 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotBasicDeblend.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotBasicDeblend.c
r6862 r6900 25 25 // we use an index for this so the spatial sorting is kept 26 26 psVector *SN = psVectorAlloc (sources->n, PS_DATA_F32); 27 SN->n = SN->nalloc; 27 28 for (int i = 0; i < SN->n; i++) { 28 29 source = sources->data[i]; … … 40 41 41 42 // temporary array for overlapping objects we find 42 // XXX psArrayAlloc should set ->n to 0 *and* all objects to NULL43 // XXX I need a psArrayEmpty function to free the elements without the array44 // XXX then, I could allocate 'overlap' once outside the loop and only45 // XXX clear at the end of each loop46 43 psArray *overlap = psArrayAlloc (100); 47 44 overlap->n = 0; … … 117 114 source->blends->n = 0; 118 115 } 119 120 116 psArrayAdd (source->blends, 16, testSource); 121 117
Note:
See TracChangeset
for help on using the changeset viewer.
