IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 1, 2006, 6:24:48 PM (20 years ago)
Author:
Paul Price
Message:

Fixing propagation of API change to psImageBackground

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/detrend/pmMaskBadPixels.c

    r10406 r10417  
    120120
    121121    // XXX note that this now will accept any of several stats options
    122     psStats *stats = psStatsAlloc(PS_STAT_ROBUST_MEDIAN | PS_STAT_ROBUST_QUARTILE);
     122    psStats *stats = psStatsAlloc(PS_STAT_ROBUST_MEDIAN | PS_STAT_ROBUST_STDEV);
    123123    stats->nSubsample = frac * image->numCols * image->numRows;
    124124    if (!psImageBackground(stats, image, mask, maskVal, rng) ||
     
    132132
    133133    float median = stats->robustMedian; // Median value
    134     float stdev = 0.74*(stats->robustUQ - stats->robustLQ); // Estimate of the standard deviation
     134    float stdev = stats->robustStdev; // Estimate of the standard deviation
    135135    psFree(stats);
    136136
Note: See TracChangeset for help on using the changeset viewer.