- Timestamp:
- May 26, 2009, 1:59:32 PM (17 years ago)
- Location:
- branches/cnb_branches/cnb_branch_20090301
- Files:
-
- 4 edited
-
. (modified) (1 prop)
-
ppStack (modified) (1 prop)
-
ppStack/src (modified) (1 prop)
-
ppStack/src/ppStackCombineFinal.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/cnb_branches/cnb_branch_20090301
- Property svn:mergeinfo changed
-
branches/cnb_branches/cnb_branch_20090301/ppStack
- Property svn:mergeinfo changed
/branches/pap/ppStack (added) merged: 23580,23597-23598,23648 /trunk/ppStack merged: 23601-23602,23688,23740,23753,23767-23769,23781,23790,23801,23808,23841,23958,23977,24174,24215-24216
- Property svn:mergeinfo changed
-
branches/cnb_branches/cnb_branch_20090301/ppStack/src
- Property svn:ignore
-
old new 9 9 config.h.in 10 10 stamp-h1 11 ppStackVersionDefinitions.h
-
- Property svn:ignore
-
branches/cnb_branches/cnb_branch_20090301/ppStack/src/ppStackCombineFinal.c
r23352 r24244 47 47 } 48 48 49 // Sum covariance matrices 50 double sumWeights = 0.0; // Sum of weights 51 for (int i = 0; i < options->num; i++) { 52 if (options->inputMask->data.U8[i]) { 53 psFree(options->covariances->data[i]); 54 options->covariances->data[i] = NULL; 55 continue; 56 } 57 psKernel *covar = options->covariances->data[i]; // Covariance matrix 58 float weight = options->weightings->data.F32[i]; // Weight to apply 59 psBinaryOp(covar->image, covar->image, "*", psScalarAlloc(weight, PS_TYPE_F32)); 60 sumWeights += weight; 61 } 62 pmReadout *outRO = options->outRO; // Output readout 63 outRO->covariance = psImageCovarianceSum(options->covariances); 64 psBinaryOp(outRO->covariance->image, outRO->covariance->image, "/", 65 psScalarAlloc(sumWeights, PS_TYPE_F32)); 66 psFree(options->covariances); options->covariances = NULL; 67 psImageCovarianceTransfer(outRO->variance, outRO->covariance); 68 49 69 #ifdef TESTING 50 70 pmStackVisualPlotTestImage(outRO->image, "combined_initial.fits");
Note:
See TracChangeset
for help on using the changeset viewer.
