Changeset 21106 for branches/pap_branch_20090108/ppStack/src/ppStackLoop.c
- Timestamp:
- Jan 12, 2009, 1:03:29 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/pap_branch_20090108/ppStack/src/ppStackLoop.c
r21101 r21106 348 348 psFree(fileIter); 349 349 350 // Generate target PSF 351 targetPSF = ppStackPSF(config, numCols, numRows, psfs); 352 psFree(psfs); 353 if (!targetPSF) { 354 psError(PS_ERR_UNKNOWN, false, "Unable to determine output PSF."); 355 psFree(sourceLists); 356 psFree(view); 357 return false; 358 } 359 psMetadataAddPtr(config->arguments, PS_LIST_TAIL, "PSF.TARGET", PS_DATA_UNKNOWN, 360 "Target PSF for stack", targetPSF); 361 350 362 // Zero point calibration 351 363 sumExposure = ppStackSourcesTransparency(sourceLists, view, config); … … 354 366 psFree(sourceLists); 355 367 psFree(targetPSF); 356 return false;357 }358 359 targetPSF = ppStackPSF(config, numCols, numRows, psfs);360 psFree(psfs);361 if (!targetPSF) {362 psError(PS_ERR_UNKNOWN, false, "Unable to determine output PSF.");363 psFree(sourceLists);364 psFree(view);365 368 return false; 366 369 } … … 450 453 psArray *regions = NULL, *kernels = NULL; // Regions and kernels used in subtraction 451 454 psTimerStart("PPSTACK_MATCH"); 455 456 457 // XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 458 // Passing common set of sources, rather than individual 459 452 460 if (!ppStackMatch(readout, ®ions, &kernels, &matchChi2->data.F32[i], &weightings->data.F32[i], 453 sourceLists->data[ i], targetPSF, rng, config)) {461 sourceLists->data[0], targetPSF, rng, config)) { 454 462 psErrorStackPrint(stderr, "Unable to match image %d --- ignoring.", i); 455 463 inputMask->data.U8[i] = PPSTACK_MASK_MATCH;
Note:
See TracChangeset
for help on using the changeset viewer.
