Changeset 14779
- Timestamp:
- Sep 7, 2007, 10:27:18 AM (19 years ago)
- Location:
- branches/eam_branch_20070830/psModules/src
- Files:
-
- 3 edited
-
camera/pmFPA_JPEG.c (modified) (2 diffs)
-
detrend/pmMaskBadPixels.c (modified) (1 diff)
-
detrend/pmShutterCorrection.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20070830/psModules/src/camera/pmFPA_JPEG.c
r13274 r14779 5 5 * @author EAM, IfA 6 6 * 7 * @version $Revision: 1.22 $ $Name: not supported by cvs2svn $8 * @date $Date: 2007-0 5-05 02:37:02$7 * @version $Revision: 1.22.10.1 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2007-09-07 20:27:18 $ 9 9 * 10 10 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 161 161 psStats *stats = psStatsAlloc(PS_STAT_ROBUST_MEDIAN); 162 162 stats->nSubsample = 10000; 163 if (!psImageBackground(stats, readout->image, NULL, 0, rng)) {163 if (!psImageBackground(stats, NULL, readout->image, NULL, 0, rng)) { 164 164 psStats *statsAlt = psStatsAlloc(PS_STAT_SAMPLE_MEAN | PS_STAT_SAMPLE_STDEV); 165 165 stats->nSubsample = 10000; 166 if (!psImageBackground(stats, readout->image, NULL, 0, rng)) {166 if (!psImageBackground(stats, NULL, readout->image, NULL, 0, rng)) { 167 167 psLogMsg("jpeg", PS_LOG_WARN, "Unable to measure statistics for image, writing blank jpeg\n"); 168 168 mean = 0; -
branches/eam_branch_20070830/psModules/src/detrend/pmMaskBadPixels.c
r13591 r14779 112 112 psStats *stats = psStatsAlloc(PS_STAT_ROBUST_MEDIAN | PS_STAT_ROBUST_STDEV); 113 113 stats->nSubsample = frac * image->numCols * image->numRows; 114 if (!psImageBackground(stats, image, mask, maskVal, rng) ||114 if (!psImageBackground(stats, NULL, image, mask, maskVal, rng) || 115 115 !isfinite(stats->robustMedian) || !isfinite(stats->robustUQ) || !isfinite(stats->robustLQ)) { 116 116 psError(PS_ERR_UNKNOWN, false, "Unable to measure image statistics.\n"); -
branches/eam_branch_20070830/psModules/src/detrend/pmShutterCorrection.c
r13870 r14779 811 811 psMemIncrRefCounter(rng); 812 812 } 813 if (!psImageBackground(stats, readout->image, readout->mask, maskVal, rng)) {813 if (!psImageBackground(stats, NULL, readout->image, readout->mask, maskVal, rng)) { 814 814 psError(PS_ERR_UNKNOWN, false, "Unable to measure reference statistics.\n"); 815 815 psFree(stats);
Note:
See TracChangeset
for help on using the changeset viewer.
