IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 31, 2012, 11:47:07 AM (14 years ago)
Author:
eugene
Message:

merge changes from trunk

Location:
branches/eam_branches/ipp-20120627/psModules
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20120627/psModules

  • branches/eam_branches/ipp-20120627/psModules/src/imcombine/pmStack.c

    r31721 r34246  
    357357        sumWeight += weights->data.F32[i];
    358358        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];
    360361        }
    361362        if (exps) {
     
    372373    *mean = sumValueWeight / sumWeight;
    373374    if (var) {
    374         *var = sumVarianceWeight / PS_SQR(sumWeight);
     375      //*var = sumVarianceWeight / PS_SQR(sumWeight);
     376      *var = 1 / sumVarianceWeight;
    375377    }
    376378    if (exp) {
Note: See TracChangeset for help on using the changeset viewer.