Changeset 35908
- Timestamp:
- Aug 7, 2013, 6:43:41 PM (13 years ago)
- Location:
- tags/ipp-20130712/ppStack/src
- Files:
-
- 3 edited
-
. (modified) (1 prop)
-
ppStackMatch.c (modified) (1 diff)
-
ppStackUpdateHeader.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tags/ipp-20130712/ppStack/src
- Property svn:mergeinfo set to
-
tags/ipp-20130712/ppStack/src/ppStackMatch.c
r35455 r35908 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 } -
tags/ipp-20130712/ppStack/src/ppStackUpdateHeader.c
r34800 r35908 98 98 99 99 float value = options->norm ? pow(10.0, -0.4*options->norm->data.F32[i]) : NAN; 100 if ((options->inputMask)&&(options->inputMask->data.PS_TYPE_VECTOR_MASK_DATA[i])) { 101 value = 0.0; // If this is NAN, then it's recorded in the header as a character string instead of a float. 102 } 100 103 snprintf (field, 64, "SCL_%04d", i); 101 104 psMetadataAddF32(hdu->header, PS_LIST_TAIL, field, PS_META_REPLACE, "input image scale factor", value); … … 132 135 expROhdu->header = psMetadataAlloc(); 133 136 } 137 134 138 expRO->parent->parent->parent->hdu->header = psMetadataCopy(expRO->parent->parent->parent->hdu->header, 135 139 outRO->parent->parent->parent->hdu->header);
Note:
See TracChangeset
for help on using the changeset viewer.
