IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 15, 2006, 8:30:16 AM (21 years ago)
Author:
eugene
Message:

API cleanup, removed old test files, some re-organization, changed FLT/GAL to EXT

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotBasicDeblend.c

    r5986 r5993  
    3636    psArray *overlap = psArrayAlloc (100);
    3737
    38     // XXX make sure this results in decreasing, not increasing, SN
     38    // examine sources in decreasing SN order
    3939    for (int i = sources->n - 1; i >= 0; i--) {
    4040        N = index->data.U32[i];
     
    7373        // generate source contour (1/4 peak counts)
    7474        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
    7776            threshold = FRACTION * (source->peak->counts - source->moments->Sky) + source->moments->Sky;
    7877            threshold = PS_MAX (threshold, minThreshold);
    7978
    80             // XXX EAM : should the contour input coordinate be in parent or subimage coords? parent, for now
     79            // generate a basic contour (set of x,y coordinates at-or-below flux level)
    8180            psArray *contour = pmSourceContour_EAM (source->pixels, source->peak->x, source->peak->y, threshold);
    8281            if (contour == NULL) continue;
     
    9796                    if (xv->data.F32[j+1] < testSource->peak->x) break;
    9897
    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], threshold
    115                        );
    116                     # endif
    117                    
    11898                    testSource->mode |= PM_SOURCE_BLEND;
    11999
Note: See TracChangeset for help on using the changeset viewer.