IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 20, 2007, 11:39:04 AM (19 years ago)
Author:
Paul Price
Message:

Adding output when stamps found.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/imcombine/pmSubtractionStamps.c

    r14195 r14342  
    6161    int yNumStamps = numRows / spacing + 1;
    6262
     63    int numFound = 0;                   // Number of stamps found
     64
    6365    if (stamps) {
    6466        PS_ASSERT_INT_EQUAL(stamps->n, xNumStamps * yNumStamps, NULL);
     
    111113                stamp->x = xBest;
    112114                stamp->y = yBest;
    113                 stamp->status = fluxBest > threshold ? PM_SUBTRACTION_STAMP_CALCULATE :
    114                     PM_SUBTRACTION_STAMP_NONE;
    115                 if (stamp->status == PM_SUBTRACTION_STAMP_CALCULATE) {
     115                if (fluxBest > threshold) {
     116                    stamp->status = PM_SUBTRACTION_STAMP_CALCULATE;
     117                    numFound++;
    116118                    psTrace("psModules.imcombine", 5, "Found stamp in region (%d,%d): %d,%d\n",
    117119                            i, j, stamp->x, stamp->y);
     120                } else {
     121                    stamp->status = PM_SUBTRACTION_STAMP_NONE;
    118122                }
    119123            }
     
    121125    }
    122126
     127    psLogMsg("psModules.imcombine", PS_LOG_INFO, "Found %d stamps in %dx%d regions",
     128             numFound, xNumStamps, yNumStamps);
     129
    123130    return stamps;
    124131}
Note: See TracChangeset for help on using the changeset viewer.