- Timestamp:
- Jul 31, 2012, 11:47:07 AM (14 years ago)
- Location:
- branches/eam_branches/ipp-20120627/psModules
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/imcombine/pmStack.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20120627/psModules
- Property svn:mergeinfo changed
/trunk/psModules merged: 34150,34156,34198-34199,34234
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20120627/psModules/src/imcombine/pmStack.c
r31721 r34246 357 357 sumWeight += weights->data.F32[i]; 358 358 if (variances) { 359 sumVarianceWeight += variances->data.F32[i] * PS_SQR(weights->data.F32[i]); 359 // sumVarianceWeight += variances->data.F32[i] * PS_SQR(weights->data.F32[i]); 360 sumVarianceWeight += 1 / variances->data.F32[i]; 360 361 } 361 362 if (exps) { … … 372 373 *mean = sumValueWeight / sumWeight; 373 374 if (var) { 374 *var = sumVarianceWeight / PS_SQR(sumWeight); 375 //*var = sumVarianceWeight / PS_SQR(sumWeight); 376 *var = 1 / sumVarianceWeight; 375 377 } 376 378 if (exp) {
Note:
See TracChangeset
for help on using the changeset viewer.
