IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 12, 2008, 4:59:10 PM (17 years ago)
Author:
Paul Price
Message:

Can't figure out why the weightings which are being placed on readout->analysis aren't getting to the combination stage, so I'm putting them in a vector and passing them explicitly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppStack/src/ppStackMatch.c

    r20710 r20711  
    4747#endif
    4848
    49 bool ppStackMatch(pmReadout *readout, psArray **regions, psArray **kernels, float *chi2,
     49bool ppStackMatch(pmReadout *readout, psArray **regions, psArray **kernels, float *chi2, float *weighting,
    5050                  const psArray *sources, const pmPSF *psf, psRandom *rng, const pmConfig *config)
    5151{
     
    384384        (void)psBinaryOp(readout->image, readout->image, "+",
    385385                         psScalarAlloc(- psStatsGetValue(bg, PS_STAT_ROBUST_MEDIAN), PS_TYPE_F32));
     386        *weighting = 1.0 / PS_SQR(psStatsGetValue(bg, PS_STAT_ROBUST_STDEV));
    386387        psMetadataAddF32(readout->analysis, PS_LIST_TAIL, "PPSTACK.WEIGHTING", 0,
    387388                         "Weighting by 1/noise^2 for stack",
Note: See TracChangeset for help on using the changeset viewer.