Changeset 20711 for trunk/ppStack/src/ppStackLoop.c
- Timestamp:
- Nov 12, 2008, 4:59:10 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/ppStack/src/ppStackLoop.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppStack/src/ppStackLoop.c
r20659 r20711 444 444 psVector *matchChi2 = psVectorAlloc(num, PS_TYPE_F32); // chi^2 for stamps when matching 445 445 psVectorInit(matchChi2, NAN); 446 psVector *weightings = psVectorAlloc(num, PS_TYPE_F32); // Combination weightings for images (1/noise^2) 447 psVectorInit(weightings, NAN); 446 448 for (int i = 0; i < num; i++) { 447 449 psTrace("ppStack", 2, "Convolving input %d of %d to target PSF....\n", i, num); … … 482 484 psArray *sources = haveSources ? globalSources : indSources->data[i]; // Sources for matching 483 485 psTimerStart("PPSTACK_MATCH"); 484 if (!ppStackMatch(readout, ®ions, &kernels, &matchChi2->data.F32[i], 486 if (!ppStackMatch(readout, ®ions, &kernels, &matchChi2->data.F32[i], &weightings->data.F32[i], 485 487 sources, targetPSF, rng, config)) { 486 488 psErrorStackPrint(stderr, "Unable to match image %d --- ignoring.", i); … … 718 720 psArrayAdd(job->args, 1, subRegions); 719 721 psArrayAdd(job->args, 1, subKernels); 722 psArrayAdd(job->args, 1, weightings); 720 723 psArrayAdd(job->args, 1, matchChi2); 721 724 if (!psThreadJobAddPending(job)) { … … 725 728 psFree(stack); 726 729 psFree(inputMask); 730 psFree(weightings); 727 731 psFree(matchChi2); 728 732 psFree(view); … … 961 965 psArrayAdd(job->args, 1, outRO); 962 966 psArrayAdd(job->args, 1, rejected); 967 psArrayAdd(job->args, 1, weightings); 963 968 if (!psThreadJobAddPending(job)) { 964 969 psFree(job);
Note:
See TracChangeset
for help on using the changeset viewer.
