- Timestamp:
- May 26, 2009, 1:59:32 PM (17 years ago)
- Location:
- branches/cnb_branches/cnb_branch_20090301
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/cnb_branches/cnb_branch_20090301
- Property svn:mergeinfo changed
-
branches/cnb_branches/cnb_branch_20090301/psModules
- Property svn:mergeinfo changed
-
branches/cnb_branches/cnb_branch_20090301/psModules/src/imcombine/pmStack.c
r23594 r24244 34 34 35 35 //#define TESTING // Enable test output 36 //#define TEST_X 2318// x coordinate to examine37 //#define TEST_Y 2306// y coordinate to examine36 //#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.
