Changeset 27676
- Timestamp:
- Apr 13, 2010, 4:50:44 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/detrend/pmPattern.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/detrend/pmPattern.c
r26893 r27676 290 290 psStats *cellStats = psStatsAlloc(cellStat); // Statistics on cells 291 291 if (!psVectorStats(cellStats, mean, NULL, meanMask, PM_PATTERN_ALL)) { 292 // an error in psVectorStats implies a programming error 292 293 psError(PS_ERR_UNKNOWN, false, "Unable to calculate mean cell background."); 293 294 psFree(mean); … … 300 301 psFree(cellStats); 301 302 if (!isfinite(background)) { 302 psError(PS_ERR_UNKNOWN, false, "Non-finite mean cell background."); 303 // this can happen if all data in the image is bad -- in this case, do not correct, but 304 // do not treat this as an error (other functions are responsible for check data validity) 305 psLogMsg("psModules.detrend", PS_LOG_DETAIL, "Non-finite mean cell background -- skipping correction (data probabaly bad)."); 303 306 psFree(mean); 304 307 psFree(meanMask); 305 return false;308 return true; 306 309 } 307 310
Note:
See TracChangeset
for help on using the changeset viewer.
