IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 4, 2009, 10:24:33 AM (17 years ago)
Author:
Paul Price
Message:

Calculate covariance matrix for output.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/pap_branch_20090128/pswarp/src/pswarpLoop.c

    r21235 r21282  
    273273    }
    274274
     275    // Set covariance matrix for output
     276    {
     277        psList *covariances = psMetadataLookupPtr(&mdok, output->analysis,
     278                                                  PSWARP_ANALYSIS_COVARIANCES); // Covariance matrices
     279        psAssert(covariances, "Should be there");
     280        psArray *covars = psListToArray(covariances); // Array of covariance matrices
     281        output->covariance = psImageCovarianceAverage(covars);
     282        psFree(covars);
     283        psMetadataRemoveKey(output->analysis, PSWARP_ANALYSIS_COVARIANCES);
     284    }
     285
    275286    if (!pmConceptsAverageCells(outCell, cells, NULL, NULL, false)) {
    276287        psError(PS_ERR_UNKNOWN, false, "Unable to average cell concepts.");
Note: See TracChangeset for help on using the changeset viewer.