Changeset 17006 for trunk/ppStack/src/ppStackLoop.c
- Timestamp:
- Mar 17, 2008, 11:39:43 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/ppStack/src/ppStackLoop.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppStack/src/ppStackLoop.c
r16999 r17006 183 183 184 184 float threshold = psMetadataLookupF32(NULL, config->arguments, "THRESHOLD.MASK"); // Threshold for mask deconvolution 185 float imageRej = psMetadataLookupF32(NULL, config->arguments, "IMAGE.REJ"); // Maximum fraction of image to reject before rejecting entire image 185 186 186 187 const char *statsName = psMetadataLookupStr(&mdok, config->arguments, "STATS"); // Filename for statistics … … 472 473 subKernels->data[i]); // Pixels to reject 473 474 psFree(inspect); 474 psTrace("ppStack", 5, "%ld pixels rejected from image %d", reject->n, i); 475 float frac = reject->n / (float)(ro->image->numCols * ro->image->numRows); // Pixel fraction 476 psTrace("ppStack", 5, "%ld pixels rejected from image %d (%.1f%%)", reject->n, i, frac * 100.0); 477 if (frac > imageRej) { 478 psWarning("Image %d rejected completely because rejection fraction (%.3f) " 479 "exceeds limit (%.3f)", i, frac, imageRej); 480 psFree(reject); 481 // reject == NULL means reject image completely 482 reject = NULL; 483 } 475 484 rejected->data[i] = reject; 476 485 } … … 484 493 psTrace("ppStack", 2, "Final stack of chunk %d....\n", numChunk); 485 494 for (int i = 0; i < num; i++) { 495 if (!rejected->data[i]) { 496 continue; 497 } 486 498 pmReadout *readout = readouts->data[i]; 487 499 assert(readout);
Note:
See TracChangeset
for help on using the changeset viewer.
