Changeset 21525 for trunk/ppStack/src/ppStackMatch.c
- Timestamp:
- Feb 17, 2009, 3:38:42 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/ppStack/src/ppStackMatch.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppStack/src/ppStackMatch.c
r21477 r21525 189 189 190 190 bool mdok; // Status of MD lookup 191 bool renorm = psMetadataLookupBool(&mdok, recipe, "RENORM"); // Renormalise variances?192 191 float penalty = psMetadataLookupF32(NULL, ppsub, "PENALTY"); // Penalty for wideness 193 192 int threads = psMetadataLookupS32(NULL, config->arguments, "-threads"); // Number of threads … … 374 373 } 375 374 #endif 376 377 // Renormalise the variances if desired378 if (renorm) {379 // Statistics for renormalisation380 psStatsOptions renormMean = psStatsOptionFromString(psMetadataLookupStr(&mdok, recipe,381 "RENORM.MEAN"));382 psStatsOptions renormStdev = psStatsOptionFromString(psMetadataLookupStr(&mdok, recipe,383 "RENORM.STDEV"));384 385 if (!pmReadoutVarianceRenormPixels(readout, maskBad, renormMean, renormStdev, rng)) {386 psError(PS_ERR_UNKNOWN, false, "Unable to renormalise variances.");387 psFree(output);388 return false;389 }390 }391 375 392 376 if (threads > 0) { … … 562 546 } 563 547 564 // Renormalise the variances if desired565 if (renorm) {566 // Statistics for renormalisation567 psStatsOptions renormMean = psStatsOptionFromString(psMetadataLookupStr(&mdok, recipe,568 "RENORM.MEAN"));569 psStatsOptions renormStdev = psStatsOptionFromString(psMetadataLookupStr(&mdok, recipe,570 "RENORM.STDEV"));571 572 if (!pmReadoutVarianceRenormPixels(readout, maskBad, renormMean, renormStdev, rng)) {573 psError(PS_ERR_UNKNOWN, false, "Unable to renormalise variances.");574 psFree(output);575 return false;576 }577 }578 579 548 // Ensure the background value is zero 580 549 psStats *bg = psStatsAlloc(PS_STAT_ROBUST_MEDIAN | PS_STAT_ROBUST_STDEV); // Statistics for background
Note:
See TracChangeset
for help on using the changeset viewer.
