Changeset 10406 for trunk/psModules/src/camera
- Timestamp:
- Dec 1, 2006, 2:51:56 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/camera/pmFPA_JPEG.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmFPA_JPEG.c
r10179 r10406 5 5 * @author EAM, IfA 6 6 * 7 * @version $Revision: 1.1 1$ $Name: not supported by cvs2svn $8 * @date $Date: 2006-1 1-24 20:54:09$7 * @version $Revision: 1.12 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2006-12-02 00:51:55 $ 9 9 * 10 10 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 131 131 // XXX we need to decide where the scale will come from in the long term 132 132 psRandom *rng = psRandomAlloc(PS_RANDOM_TAUS, 0); 133 psStats *stats = psImageBackground(readout->image, NULL, 0, 0.25, 0.75, 10000, PS_STAT_ROBUST_MEDIAN, rng); 133 psStats *stats = psStatsAlloc(PS_STAT_ROBUST_MEDIAN | PS_STAT_ROBUST_QUARTILE); 134 stats->nSubsample = 10000; 135 if (!psImageBackground(stats, readout->image, NULL, 0, rng)) { 136 psError(PS_ERR_UNKNOWN, false, "Unable to write JPEG of readout.\n"); 137 psFree(rng); 138 psFree(stats); 139 return false; 140 } 134 141 psFree(rng); 135 142
Note:
See TracChangeset
for help on using the changeset viewer.
