IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 29, 2009, 10:53:35 AM (17 years ago)
Author:
Paul Price
Message:

Add more debugging.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/pap/psModules/src/imcombine/pmStack.c

    r25964 r25967  
    3434
    3535#define TESTING                         // Enable test output
    36 #define TEST_X 1748-1                     // x coordinate to examine
    37 #define TEST_Y 1339-1                     // y coordinate to examine
     36#define TEST_X 1500-1                     // x coordinate to examine
     37#define TEST_Y 4000-1                     // y coordinate to examine
    3838
    3939
     
    934934    for (int y = minInputRows; y < maxInputRows; y++) {
    935935        for (int x = minInputCols; x < maxInputCols; x++) {
     936#ifdef TESTING
     937            if (x == TEST_X && y == TEST_Y) {
     938                fprintf(stderr, "Combining pixel %d,%d: %x %x %d %f %f %f %d %d %d\n",
     939                        x, y, maskVal, bad, numIter, rej, sys, olympic, useVariance, safe, rejection);
     940            }
     941#endif
    936942            psVector *reject = NULL; // Images to reject for this pixel
    937943            if (rejection) {
    938944                reject = pixelMapQuery(pixelMap, minInputCols, minInputRows, x, y);
     945#ifdef TESTING
     946                if (x == TEST_X && y == TEST_Y) {
     947                    fprintf(stderr, "Rejected inputs: ");
     948                    for (int i = 0; i < reject->n; i++) {
     949                        fprintf(stderr, "%d ", reject->data.U16[i]);
     950                    }
     951                    fprintf(stderr, "\n");
     952                }
     953#endif
    939954            }
    940955            combinePixels(combinedImage, combinedMask, combinedVariance, input, weights,
Note: See TracChangeset for help on using the changeset viewer.