Changeset 10406
- Timestamp:
- Dec 1, 2006, 2:51:56 PM (20 years ago)
- Location:
- trunk/psModules/src
- Files:
-
- 2 edited
-
camera/pmFPA_JPEG.c (modified) (2 diffs)
-
detrend/pmMaskBadPixels.c (modified) (1 diff)
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 -
trunk/psModules/src/detrend/pmMaskBadPixels.c
r10330 r10406 120 120 121 121 // XXX note that this now will accept any of several stats options 122 psStats *stats = ps ImageBackground(image, mask, maskVal, 0.25, 0.75,123 frac * image->numCols * image->numRows, PS_STAT_ROBUST_MEDIAN, rng); // Image statistics124 if (! stats || !isfinite(stats->robustMedian) || !isfinite(stats->robustUQ) ||125 !isfinite(stats->robust LQ)) {122 psStats *stats = psStatsAlloc(PS_STAT_ROBUST_MEDIAN | PS_STAT_ROBUST_QUARTILE); 123 stats->nSubsample = frac * image->numCols * image->numRows; 124 if (!psImageBackground(stats, image, mask, maskVal, rng) || 125 !isfinite(stats->robustMedian) || !isfinite(stats->robustUQ) || !isfinite(stats->robustLQ)) { 126 126 psError(PS_ERR_UNKNOWN, false, "Unable to measure image statistics.\n"); 127 127 psFree(stats);
Note:
See TracChangeset
for help on using the changeset viewer.
