Changeset 29772
- Timestamp:
- Nov 12, 2010, 11:36:35 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/imcombine/pmSubtraction.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/imcombine/pmSubtraction.c
r29599 r29772 1375 1375 // Calculate covariances 1376 1376 // This can be fairly involved, so we only do it for a small number of instances 1377 if (!out1->covariance) { 1378 psError(PM_ERR_PROG, false, "psImageCovarianceAverage returned NULL."); 1379 return false; 1380 } 1377 1381 float position[NUM_COVAR_POS] = { -1.0, -0.5, 0.0, +0.5, +1.0 }; // Positions for covariance calculations 1378 1382 // Enable threads for covariance calculation, since we're not threading on top of it … … 1391 1395 out1->covariance = psImageCovarianceAverage(covars); 1392 1396 psFree(covars); 1397 if (!out1->covariance) { 1398 psError(PM_ERR_UNKNOWN, false, "psImageCovarianceAverage returned NULL for out1."); 1399 return false; 1400 } 1393 1401 // Remove covariance factor from covariance, since we've put it in the variance map already 1394 1402 float factor = psImageCovarianceFactor(out1->covariance); … … 1408 1416 out2->covariance = psImageCovarianceAverage(covars); 1409 1417 psFree(covars); 1418 if (!out2->covariance) { 1419 psError(PM_ERR_UNKNOWN, false, "psImageCovarianceAverage returned NULL for out2."); 1420 return false; 1421 } 1410 1422 // Remove covariance factor from covariance, since we've put it in the variance map already 1411 1423 float factor = psImageCovarianceFactor(out2->covariance);
Note:
See TracChangeset
for help on using the changeset viewer.
