Changeset 35868 for trunk/ppStack/src/ppStackMatch.c
- Timestamp:
- Jul 31, 2013, 12:53:02 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/ppStack/src/ppStackMatch.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppStack/src/ppStackMatch.c
r35455 r35868 467 467 sum += kernels->rms; 468 468 num++; 469 // psLogMsg("ppStack", PS_LOG_INFO, "KERNMATCHDUMP %d %d%g %g %g\n",470 // index,num,kernels->mean,kernels->rms,sum);469 // psLogMsg("ppStack", PS_LOG_INFO, "KERNMATCHDUMP %d %d %g %g %g %g\n", 470 // index,num,kernels->mean,kernels->rms,sum,psImageCovarianceFactor(readout->covariance)); 471 471 } 472 472 psFree(iter); 473 options->matchChi2->data.F32[index] = sum / (psImageCovarianceFactor(readout->covariance) * num); 473 474 // Apply the covariance factor to the chi^2 value 475 double covar_factor = 1.0; 476 if (type != PM_SUBTRACTION_KERNEL_SIMPLE) { // Except if we're using simple kernels. 477 covar_factor = psImageCovarianceFactor(readout->covariance); 478 } 479 options->matchChi2->data.F32[index] = sum / (covar_factor * num); 474 480 475 481 }
Note:
See TracChangeset
for help on using the changeset viewer.
