- Timestamp:
- Apr 21, 2014, 5:42:34 AM (12 years ago)
- Location:
- branches/eam_branches/ps2-tc3-20130727
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ppStack/src/ppStackMatch.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ps2-tc3-20130727
- Property svn:mergeinfo changed
-
branches/eam_branches/ps2-tc3-20130727/ppStack/src/ppStackMatch.c
r35455 r36680 6 6 #define COVAR_FRAC 0.01 // Truncation fraction for covariance matrix 7 7 8 // #define TESTING // Enable debugging output8 // #define TESTING // Enable debugging output 9 9 // #define TESTING_REUSE_CONV // Enable debugging for re-using convolved outputs from previous run 10 11 10 // #define TESTING_CZW 12 11 … … 156 155 if (options->convolve) { 157 156 pmReadout *conv = pmReadoutAlloc(NULL); // Conv readout, for holding results temporarily 157 158 // MEH -- earlier defn needed with new simple mode modifications to use TESTING_REUSE_CONV... 159 //const char *typeStr = psMetadataLookupStr(NULL, ppsub, "KERNEL.TYPE"); // Kernel type 160 //pmSubtractionKernelsType type = pmSubtractionKernelsTypeFromString(typeStr); // Kernel type 161 158 162 #ifdef TESTING_REUSE_CONV 159 163 // This is a hack to use the temporary convolved images and kernel generated previously. … … 467 471 sum += kernels->rms; 468 472 num++; 469 // psLogMsg("ppStack", PS_LOG_INFO, "KERNMATCHDUMP %d %d%g %g %g\n",470 // index,num,kernels->mean,kernels->rms,sum);473 // psLogMsg("ppStack", PS_LOG_INFO, "KERNMATCHDUMP %d %d %g %g %g %g\n", 474 // index,num,kernels->mean,kernels->rms,sum,psImageCovarianceFactor(readout->covariance)); 471 475 } 472 476 psFree(iter); 473 options->matchChi2->data.F32[index] = sum / (psImageCovarianceFactor(readout->covariance) * num); 477 478 // Apply the covariance factor to the chi^2 value 479 double covar_factor = 1.0; 480 if (type != PM_SUBTRACTION_KERNEL_SIMPLE) { // Except if we're using simple kernels. 481 covar_factor = psImageCovarianceFactor(readout->covariance); 482 } 483 options->matchChi2->data.F32[index] = sum / (covar_factor * num); 474 484 475 485 }
Note:
See TracChangeset
for help on using the changeset viewer.
