IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 14935


Ignore:
Timestamp:
Sep 20, 2007, 2:03:23 PM (19 years ago)
Author:
eugene
Message:

new API for psImageBackground

Location:
trunk/psModules/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/camera/pmFPA_JPEG.c

    r13274 r14935  
    55 *  @author EAM, IfA
    66 *
    7  *  @version $Revision: 1.22 $ $Name: not supported by cvs2svn $
    8  *  @date $Date: 2007-05-05 02:37:02 $
     7 *  @version $Revision: 1.23 $ $Name: not supported by cvs2svn $
     8 *  @date $Date: 2007-09-21 00:02:11 $
    99 *
    1010 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    161161    psStats *stats = psStatsAlloc(PS_STAT_ROBUST_MEDIAN);
    162162    stats->nSubsample = 10000;
    163     if (!psImageBackground(stats, readout->image, NULL, 0, rng)) {
     163    if (!psImageBackground(stats, NULL, readout->image, NULL, 0, rng)) {
    164164        psStats *statsAlt = psStatsAlloc(PS_STAT_SAMPLE_MEAN | PS_STAT_SAMPLE_STDEV);
    165165        stats->nSubsample = 10000;
    166         if (!psImageBackground(stats, readout->image, NULL, 0, rng)) {
     166        if (!psImageBackground(stats, NULL, readout->image, NULL, 0, rng)) {
    167167            psLogMsg("jpeg", PS_LOG_WARN, "Unable to measure statistics for image, writing blank jpeg\n");
    168168            mean = 0;
  • trunk/psModules/src/detrend/pmMaskBadPixels.c

    r13591 r14935  
    112112    psStats *stats = psStatsAlloc(PS_STAT_ROBUST_MEDIAN | PS_STAT_ROBUST_STDEV);
    113113    stats->nSubsample = frac * image->numCols * image->numRows;
    114     if (!psImageBackground(stats, image, mask, maskVal, rng) ||
     114    if (!psImageBackground(stats, NULL, image, mask, maskVal, rng) ||
    115115            !isfinite(stats->robustMedian) || !isfinite(stats->robustUQ) || !isfinite(stats->robustLQ)) {
    116116        psError(PS_ERR_UNKNOWN, false, "Unable to measure image statistics.\n");
  • trunk/psModules/src/detrend/pmShutterCorrection.c

    r13870 r14935  
    811811        psMemIncrRefCounter(rng);
    812812    }
    813     if (!psImageBackground(stats, readout->image, readout->mask, maskVal, rng)) {
     813    if (!psImageBackground(stats, NULL, readout->image, readout->mask, maskVal, rng)) {
    814814        psError(PS_ERR_UNKNOWN, false, "Unable to measure reference statistics.\n");
    815815        psFree(stats);
Note: See TracChangeset for help on using the changeset viewer.