IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 31, 2008, 4:05:48 PM (18 years ago)
Author:
Paul Price
Message:

Adding variance map renormalisation.

File:
1 edited

Legend:

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

    r20426 r20494  
    1717
    1818//#define TESTING                         // Enable debugging output
    19 
    20 
    2119
    2220#ifdef TESTING
     
    339337    assert((*regions)->n == (*kernels)->n);
    340338
    341     // Correct the variance for the chi^2
     339    // Record chi^2
    342340    {
    343341        *chi2 = 0.0;
     
    358356        float vf = psMetadataLookupF32(NULL, readout->parent->concepts, "CELL.VARFACTOR"); // Variance factor
    359357        *chi2 /= vf * num;
    360         psLogMsg("ppStack", PS_LOG_INFO, "Additional variance from chi^2: %f", *chi2);
    361358    }
    362359
     
    368365        psStatsOptions renormStdev = psStatsOptionFromString(psMetadataLookupStr(&mdok, recipe,
    369366                                                                                 "RENORM.STDEV"));
    370         int renormWidth = psMetadataLookupS32(&mdok, recipe, "RENORM.WIDTH"); // Width for renormalisation box
    371 
    372         psLogMsg("ppStack", PS_LOG_INFO, "Renormalising variance map.");
    373         if (!pmReadoutWeightRenorm(readout, maskBad, renormMean, renormStdev, renormWidth, rng)) {
     367
     368        if (!pmReadoutWeightRenormPixels(readout, maskBad, renormMean, renormStdev, rng)) {
    374369            psError(PS_ERR_UNKNOWN, false, "Unable to renormalise variances.");
    375370            psFree(output);
Note: See TracChangeset for help on using the changeset viewer.