- Timestamp:
- Feb 4, 2009, 10:24:33 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/pap_branch_20090128/pswarp/src/pswarpTransformReadout.c
r21235 r21282 26 26 psImageMaskType maskBad = pmConfigMaskGet("BAD.WARP", config); 27 27 psAssert(mdok, "MASK.INPUT was not defined"); 28 29 if (!input->covariance) { 30 input->covariance = psImageCovarianceNone(); 31 } 28 32 29 33 int nThreads = psMetadataLookupS32(&mdok, config->arguments, "NTHREADS"); // Number of threads … … 122 126 int xMin = output->image->numCols, xMax = 0, yMin = output->image->numRows, yMax = 0; // Bounds 123 127 int goodPixels = 0; // total number of good pixels across all tiles 128 psList *covariances = psMetadataLookupPtr(&mdok, output->analysis, 129 PSWARP_ANALYSIS_COVARIANCES); // Collection of covar. matrices 130 if (!covariances) { 131 covariances = psListAlloc(NULL); 132 psMetadataAddList(output->analysis, PS_LIST_TAIL, PSWARP_ANALYSIS_COVARIANCES, 0, 133 "Collection of covariance matrices", covariances); 134 } 124 135 while ((job = psThreadJobGetDone()) != NULL) { 125 136 if (job->args->n < 1) { … … 133 144 yMin = PS_MIN(args->yMin, yMin); 134 145 yMax = PS_MAX(args->yMax, yMax); 146 if (args->covariance) { 147 psListAdd(covariances, PS_LIST_TAIL, args->covariance); 148 } 135 149 } 136 150 psFree(job);
Note:
See TracChangeset
for help on using the changeset viewer.
