IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 6, 2006, 5:27:52 PM (20 years ago)
Author:
Paul Price
Message:

Moving additional pslib functions over to psLib proper. Some API changes.

File:
1 edited

Legend:

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

    r7311 r7382  
    55 *  @author EAM, IfA
    66 *
    7  *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
    8  *  @date $Date: 2006-06-03 01:02:08 $
     7 *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
     8 *  @date $Date: 2006-06-07 03:27:52 $
    99 *
    1010 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    1717
    1818#include <pslib.h>
    19 # include "psImageJpeg.h"
    20 # include "psImageUnbin.h"
    21 # include "psAdditionals.h"
    2219
    2320#include "pmHDU.h"
     
    141138
    142139        // XXX we need to decide where the scale will come from in the long term
    143         unsigned long seed = 0;
    144         psImageClippedStatsInit (10000, seed);
    145 
    146         psStats *stats = psImageClippedStats (readout->image, NULL, 0, 0.25, 0.75);
     140        psRandom *rng = psRandomAlloc(PS_RANDOM_TAUS, 0);
     141        psStats *stats = psImageBackground(readout->image, NULL, 0, 0.25, 0.75, 10000, rng);
    147142        float delta = stats->robustUQ - stats->robustLQ;
    148143        float min = stats->robustMedian - 3*delta;
     
    162157        psImageJpeg (map, readout->image, name, min, max);
    163158
    164         psFree (name);
    165         psFree (mode);
    166         psFree (word);
    167         psFree (mapname);
    168         psFree (map);
    169         psFree (stats);
    170         psImageClippedStatsCleanup ();
     159        psFree(name);
     160        psFree(mode);
     161        psFree(word);
     162        psFree(mapname);
     163        psFree(map);
     164        psFree(stats);
     165        psFree(rng);
    171166
    172167        return true;
Note: See TracChangeset for help on using the changeset viewer.