Changeset 11171
- Timestamp:
- Jan 18, 2007, 6:53:35 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotImageMedian.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotImageMedian.c
r10801 r11171 40 40 } 41 41 psStatsOptions statsOption = psStatsOptionFromString (statsName); 42 if (!(statsOption & (PS_STAT_SAMPLE_MEAN | PS_STAT_SAMPLE_MEDIAN | PS_STAT_ROBUST_MEDIAN | PS_STAT_ROBUST_QUARTILE | PS_STAT_CLIPPED_MEAN | PS_STAT_FITTED_MEAN | PS_STAT_FITTED_MEAN_V2 ))) {42 if (!(statsOption & (PS_STAT_SAMPLE_MEAN | PS_STAT_SAMPLE_MEDIAN | PS_STAT_ROBUST_MEDIAN | PS_STAT_ROBUST_QUARTILE | PS_STAT_CLIPPED_MEAN | PS_STAT_FITTED_MEAN | PS_STAT_FITTED_MEAN_V2 | PS_STAT_FITTED_MEAN_V3))) { 43 43 statsOption = PS_STAT_FITTED_MEAN; 44 44 } … … 104 104 } 105 105 psF32 **modelData = model->image->data.F32; 106 106 107 assert(model->analysis != NULL); 107 108 psMetadataAdd(model->analysis, PS_LIST_TAIL, "XBIN", PS_DATA_S32 | PS_META_REPLACE, … … 164 165 165 166 // patch over bad regions (use average of 8 possible neighbor pixels) 167 // XXX consider testing pixels against the 8 neighbors and replacing outliers... 166 168 float Count = 0; 167 169 float Value = 0; … … 199 201 } 200 202 } 203 201 204 psLogMsg ("psphot", PS_LOG_MINUTIA, "build median image: %f sec\n", psTimerMark ("psphot")); 202 205 … … 218 221 if (file) { 219 222 // we are using PSPHOT.BACKGND as an I/O file: select readout or create 220 background = pmFPAviewThisReadout (view, file->fpa); 223 if (file->mode == PM_FPA_MODE_INTERNAL) { 224 background = file->readout; 225 } else { 226 background = pmFPAviewThisReadout (view, file->fpa); 227 } 221 228 if (background == NULL) { 222 229 // readout does not yet exist: create from input
Note:
See TracChangeset
for help on using the changeset viewer.
