Changeset 25960
- Timestamp:
- Oct 28, 2009, 11:58:55 AM (17 years ago)
- File:
-
- 1 edited
-
branches/pap/psModules/src/imcombine/pmStack.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/pap/psModules/src/imcombine/pmStack.c
r25948 r25960 33 33 #define NUM_DIRECT_STDEV 5 // For less than this number of values, measure stdev directly 34 34 35 //#define TESTING // Enable test output36 //#define TEST_X 3349-1 // x coordinate to examine37 //#define TEST_Y 2278-1 // y coordinate to examine35 #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 38 38 39 39 … … 421 421 } 422 422 #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 } 425 428 } 426 numRejected = 1;427 429 #endif 428 430 break; … … 572 574 } 573 575 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 574 581 if (useVariance) { 575 582 // Comparing squares --- cheaper than lots of sqrts
Note:
See TracChangeset
for help on using the changeset viewer.
