Changeset 20494 for trunk/ppStack/src/ppStackMatch.c
- Timestamp:
- Oct 31, 2008, 4:05:48 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/ppStack/src/ppStackMatch.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppStack/src/ppStackMatch.c
r20426 r20494 17 17 18 18 //#define TESTING // Enable debugging output 19 20 21 19 22 20 #ifdef TESTING … … 339 337 assert((*regions)->n == (*kernels)->n); 340 338 341 // Correct the variance for thechi^2339 // Record chi^2 342 340 { 343 341 *chi2 = 0.0; … … 358 356 float vf = psMetadataLookupF32(NULL, readout->parent->concepts, "CELL.VARFACTOR"); // Variance factor 359 357 *chi2 /= vf * num; 360 psLogMsg("ppStack", PS_LOG_INFO, "Additional variance from chi^2: %f", *chi2);361 358 } 362 359 … … 368 365 psStatsOptions renormStdev = psStatsOptionFromString(psMetadataLookupStr(&mdok, recipe, 369 366 "RENORM.STDEV")); 370 int renormWidth = psMetadataLookupS32(&mdok, recipe, "RENORM.WIDTH"); // Width for renormalisation box 371 372 psLogMsg("ppStack", PS_LOG_INFO, "Renormalising variance map."); 373 if (!pmReadoutWeightRenorm(readout, maskBad, renormMean, renormStdev, renormWidth, rng)) { 367 368 if (!pmReadoutWeightRenormPixels(readout, maskBad, renormMean, renormStdev, rng)) { 374 369 psError(PS_ERR_UNKNOWN, false, "Unable to renormalise variances."); 375 370 psFree(output);
Note:
See TracChangeset
for help on using the changeset viewer.
