Changeset 23773 for trunk/psModules/src/imcombine/pmStack.c
- Timestamp:
- Apr 9, 2009, 12:13:16 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/imcombine/pmStack.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/imcombine/pmStack.c
r23577 r23773 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 2318// x coordinate to examine37 //#define TEST_Y 2306// y coordinate to examine35 #define TESTING // Enable test output 36 #define TEST_X 1085 // x coordinate to examine 37 #define TEST_Y 3371 // y coordinate to examine 38 38 39 39 … … 265 265 266 266 int numBad = frac * numGood + 0.5; // Number of bad values 267 int low = numBad / 2, high = low + numGood ; // Indices (modulo masked pixels) delimiting range of interest267 int low = numBad / 2, high = low + numGood - numBad; // Indices (modulo masked pixels) 268 268 269 269 sortBuffer = psVectorSortIndex(sortBuffer, values); … … 536 536 #ifdef TESTING 537 537 if (x == TEST_X && y == TEST_Y) { 538 fprintf(stderr, "Rejecti on limit: %f\n", limit);538 fprintf(stderr, "Rejecting without variance; rejection limit: %f\n", limit); 539 539 } 540 540 #endif 541 541 } else { 542 #ifdef TESTING 543 if (x == TEST_X && y == TEST_Y) { 544 fprintf(stderr, "Rejecting with variance...\n"); 545 } 546 #endif 542 547 median = combinationWeightedOlympic(pixelData, pixelWeights, pixelMasks, discard, sort); 543 548 }
Note:
See TracChangeset
for help on using the changeset viewer.
