Changeset 5993 for trunk/psphot/src/psphotBasicDeblend.c
- Timestamp:
- Jan 15, 2006, 8:30:16 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotBasicDeblend.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotBasicDeblend.c
r5986 r5993 36 36 psArray *overlap = psArrayAlloc (100); 37 37 38 // XXX make sure this results in decreasing, not increasing, SN38 // examine sources in decreasing SN order 39 39 for (int i = sources->n - 1; i >= 0; i--) { 40 40 N = index->data.U32[i]; … … 73 73 // generate source contour (1/4 peak counts) 74 74 if (overlap->n > 0) { 75 // XXX EAM : make the 1/4 user-defined. 76 // XXX keep threshold from dropping too low (N*sky.sigma) 75 // set the threshold based on user inputs 77 76 threshold = FRACTION * (source->peak->counts - source->moments->Sky) + source->moments->Sky; 78 77 threshold = PS_MAX (threshold, minThreshold); 79 78 80 // XXX EAM : should the contour input coordinate be in parent or subimage coords? parent, for now79 // generate a basic contour (set of x,y coordinates at-or-below flux level) 81 80 psArray *contour = pmSourceContour_EAM (source->pixels, source->peak->x, source->peak->y, threshold); 82 81 if (contour == NULL) continue; … … 97 96 if (xv->data.F32[j+1] < testSource->peak->x) break; 98 97 99 # if (0)100 int xp0 = source->moments->x - source->pixels->col0;101 int xp1 = source->peak->x - source->pixels->col0;102 int xp2 = testSource->moments->x - source->pixels->col0;103 int xp3 = testSource->peak->x - source->pixels->col0;104 105 int yp0 = source->moments->y - source->pixels->row0;106 int yp1 = source->peak->y - source->pixels->row0;107 int yp2 = testSource->moments->y - testSource->pixels->row0;108 int yp3 = testSource->peak->y - testSource->pixels->row0;109 110 fprintf (f, "%d %d (%f, %f) : %d %d (%f, %f) vs %f\n",111 source->peak->x, source->peak->y,112 source->pixels->data.F32[yp0][xp0], source->pixels->data.F32[yp1][xp1],113 testSource->peak->x, testSource->peak->y,114 testSource->pixels->data.F32[yp2][xp2], testSource->pixels->data.F32[yp3][xp3], threshold115 );116 # endif117 118 98 testSource->mode |= PM_SOURCE_BLEND; 119 99
Note:
See TracChangeset
for help on using the changeset viewer.
