IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 25960


Ignore:
Timestamp:
Oct 28, 2009, 11:58:55 AM (17 years ago)
Author:
Paul Price
Message:

Fixing logic for 1 input.

File:
1 edited

Legend:

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

    r25948 r25960  
    3333#define NUM_DIRECT_STDEV 5              // For less than this number of values, measure stdev directly
    3434
    35 //#define TESTING                         // Enable test output
    36 //#define TEST_X 3349-1                     // x coordinate to examine
    37 //#define TEST_Y 2278-1                     // y coordinate to examine
     35#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
    3838
    3939
     
    421421          }
    422422#ifdef TESTING
    423           else if (x == TEST_X && y == TEST_Y) {
    424               fprintf(stderr, "Single input to combine, safety on, pixel is bad.\n");
     423          else {
     424              numRejected = 1;
     425              if (x == TEST_X && y == TEST_Y) {
     426                  fprintf(stderr, "Single input to combine, safety on, pixel is bad.\n");
     427              }
    425428          }
    426           numRejected = 1;
    427429#endif
    428430          break;
     
    572574                  }
    573575                  float diff = pixelData->data.F32[j] - median; // Difference from expected
     576#ifdef TESTING
     577                  if (x == TEST_X && y == TEST_Y) {
     578                      fprintf(stderr, "Testing input %d for rejection: %f\n", j, diff);
     579                  }
     580#endif
    574581                  if (useVariance) {
    575582                      // Comparing squares --- cheaper than lots of sqrts
Note: See TracChangeset for help on using the changeset viewer.