Changeset 5802 for trunk/psphot/src/psphotSourceStats.c
- Timestamp:
- Dec 17, 2005, 10:26:59 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotSourceStats.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotSourceStats.c
r5617 r5802 5 5 bool status = false; 6 6 psArray *sources = NULL; 7 float BIG_RADIUS; 7 8 8 9 psTimerStart ("psphot"); … … 35 36 36 37 // measure basic source moments 37 // XXX EAM : choose between these two versions38 38 status = pmSourceMoments (source, RADIUS); 39 if (!status) { 40 psFree (source); 41 continue; 39 if (status) { 40 // add to the source array 41 psArrayAdd (sources, 100, source); 42 psFree (source); 43 continue; 42 44 } 43 44 // add to the source array 45 psArrayAdd (sources, 100, source); 45 46 // if no valid pixels, or massive swing, likely saturated source, 47 // try a much larger box 48 BIG_RADIUS = PS_MIN (INNER, 3*RADIUS); 49 psTrace ("psphot", 4, "retrying moments for %d, %d\n", source->peak->x, source->peak->y); 50 status = pmSourceMoments (source, BIG_RADIUS); 51 if (status) { 52 // add to the source array 53 psArrayAdd (sources, 100, source); 54 psFree (source); 55 continue; 56 } 57 46 58 psFree (source); 59 continue; 47 60 } 48 61
Note:
See TracChangeset
for help on using the changeset viewer.
