Changeset 20711 for trunk/ppStack/src/ppStackMatch.c
- Timestamp:
- Nov 12, 2008, 4:59:10 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/ppStack/src/ppStackMatch.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppStack/src/ppStackMatch.c
r20710 r20711 47 47 #endif 48 48 49 bool ppStackMatch(pmReadout *readout, psArray **regions, psArray **kernels, float *chi2, 49 bool ppStackMatch(pmReadout *readout, psArray **regions, psArray **kernels, float *chi2, float *weighting, 50 50 const psArray *sources, const pmPSF *psf, psRandom *rng, const pmConfig *config) 51 51 { … … 384 384 (void)psBinaryOp(readout->image, readout->image, "+", 385 385 psScalarAlloc(- psStatsGetValue(bg, PS_STAT_ROBUST_MEDIAN), PS_TYPE_F32)); 386 *weighting = 1.0 / PS_SQR(psStatsGetValue(bg, PS_STAT_ROBUST_STDEV)); 386 387 psMetadataAddF32(readout->analysis, PS_LIST_TAIL, "PPSTACK.WEIGHTING", 0, 387 388 "Weighting by 1/noise^2 for stack",
Note:
See TracChangeset
for help on using the changeset viewer.
