IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 23, 2010, 7:08:16 AM (16 years ago)
Author:
eugene
Message:

more clearly distinguish mask used to test for bad pixels from mask value used to set possibly blank pixels; do not fail is no covariances are supplied; replace instance of psMetadataAddU8 with psMetadataAddImageMask; replace pmReadoutMaskNonfinite with pmReadoutMaskInvalid (only masks unmasked nan pixels)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20100823/ppStack/src/ppStackCombineFinal.c

    r28405 r29217  
    9393
    9494    // Sum covariance matrices
     95    // the array may be defined, but no covariances actually supplied.
     96    bool haveCovariances = false;
    9597    if (covariances) {
     98        for (int i = 0; i < covariances->n; i++) {
     99            haveCovariances |= (covariances->data[i] != NULL);
     100        }
     101    }
     102
     103    if (haveCovariances) {
    96104        outRO->covariance = psImageCovarianceAverageWeighted(covariances, options->weightings);
    97105    } else {
Note: See TracChangeset for help on using the changeset viewer.