IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 9, 2010, 6:36:37 PM (16 years ago)
Author:
Paul Price
Message:

Add call to ppStats.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppBackground/src/ppBackgroundLoop.c

    r28280 r28281  
    66#include <pslib.h>
    77#include <psmodules.h>
     8#include <ppStats.h>
    89
    910#include "ppBackground.h"
     
    1819    pmFPA *patternMosaic = pmFPAConstruct(file->camera, file->cameraName); // Mosaicked FPA for pattern
    1920
    20     psImageMaskType maskBad = pmConfigMaskGet("BLANK", config); // Mask value to set
     21    psImageMaskType maskBad = pmConfigMaskGet("DETECTOR", config); // Mask value to set
    2122
    2223    pmFPAview *view = pmFPAviewAlloc(0); // Pointer into FPA hierarchy
     
    154155    }
    155156
     157    psFree(patternMosaic);
     158
     159    if (data->stats) {
     160        psImageMaskType maskVal = 0;    // Bits to mask
     161        if (!pmConfigMaskSetBits(&maskVal, NULL, config)) {
     162            psError(psErrorCodeLast(), false, "Unable to find bits to mask");
     163            return false;
     164        }
     165        ppStatsFPA(data->stats, file->fpa, view, maskVal, config);
     166    }
     167
    156168    psFree(view);
    157     psFree(patternMosaic);
    158169
    159170    return true;
Note: See TracChangeset for help on using the changeset viewer.