Changeset 6481 for trunk/psphot/src/psphotImageMedian.c
- Timestamp:
- Feb 23, 2006, 6:16:11 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotImageMedian.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotImageMedian.c
r6441 r6481 8 8 // use no more than MAX_SAMPLE_PIXELS pixels for each median box 9 9 static int MAX_SAMPLE_PIXELS; 10 11 static char *backImage = NULL; 12 static char *backModel = NULL; 13 14 bool psphotBackgroundNames (psMetadata *arguments) { 15 16 bool status; 17 18 backImage = psMetadataLookupStr (&status, arguments, "BACKGROUND_IMAGE"); 19 backModel = psMetadataLookupStr (&status, arguments, "BACKGROUND_MODEL"); 20 21 return true; 22 } 10 23 11 24 // generate the median in NxN boxes, clipping heavily … … 211 224 } 212 225 } 226 227 // optionally save background 228 if (backImage != NULL) psphotSaveImage (NULL, background, backImage); 229 if (backModel != NULL) psphotSaveImage (NULL, model, backModel); 230 213 231 psLogMsg ("psphot", 3, "subtracted background model: %f sec\n", psTimerMark ("psphot")); 214 232 psFree (rnd);
Note:
See TracChangeset
for help on using the changeset viewer.
