Changeset 7382 for trunk/psModules/src/camera/pmFPA_JPEG.c
- Timestamp:
- Jun 6, 2006, 5:27:52 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/camera/pmFPA_JPEG.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmFPA_JPEG.c
r7311 r7382 5 5 * @author EAM, IfA 6 6 * 7 * @version $Revision: 1. 3$ $Name: not supported by cvs2svn $8 * @date $Date: 2006-06-0 3 01:02:08$7 * @version $Revision: 1.4 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2006-06-07 03:27:52 $ 9 9 * 10 10 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 17 17 18 18 #include <pslib.h> 19 # include "psImageJpeg.h"20 # include "psImageUnbin.h"21 # include "psAdditionals.h"22 19 23 20 #include "pmHDU.h" … … 141 138 142 139 // 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); 147 142 float delta = stats->robustUQ - stats->robustLQ; 148 143 float min = stats->robustMedian - 3*delta; … … 162 157 psImageJpeg (map, readout->image, name, min, max); 163 158 164 psFree (name);165 psFree (mode);166 psFree (word);167 psFree (mapname);168 psFree (map);169 psFree (stats);170 ps ImageClippedStatsCleanup ();159 psFree(name); 160 psFree(mode); 161 psFree(word); 162 psFree(mapname); 163 psFree(map); 164 psFree(stats); 165 psFree(rng); 171 166 172 167 return true;
Note:
See TracChangeset
for help on using the changeset viewer.
