IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 26731


Ignore:
Timestamp:
Jan 29, 2010, 10:55:56 AM (16 years ago)
Author:
eugene
Message:

add back the median background

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/20091201/psModules/src/detrend/pmPattern.c

    r24905 r26731  
    6363    float lower = stats->robustMedian - thresh * stats->robustStdev; // Lower bound for data
    6464    float upper = stats->robustMedian + thresh * stats->robustStdev; // Upper bound for data
     65    float background = stats->robustMedian;
    6566    psFree(stats);
    6667    psFree(rng);
     
    113114
    114115        for (int x = 0; x < numCols; x++) {
    115             image->data.F32[y][x] -= solution->data.F32[x];
     116            image->data.F32[y][x] += (background - solution->data.F32[x]);
    116117        }
    117118        psFree(solution);
Note: See TracChangeset for help on using the changeset viewer.