Changeset 6571 for trunk/psphot/src/psphotSkyReplace.c
- Timestamp:
- Mar 11, 2006, 5:27:13 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotSkyReplace.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotSkyReplace.c
r6481 r6571 1 1 # include "psphot.h" 2 2 3 // generate the median in NxN boxes, clipping heavily 4 // linear interpolation to generate full-scale model 5 bool psphotSkyReplace (pmReadout *readout, psImage *background) { 3 // in order to successfully replace the sky, we must define a corresponding file... 4 bool psphotSkyReplace (psMetadata *config, pmFPAview *view) { 6 5 6 // find the currently selected readout 7 psMetadata *recipe = psMetadataLookupPtr (&status, config->recipes, "PSPHOT"); 8 pmFPA *input = psMetadataLookupPtr (&status, config->files, "PSPHOT.INPUT"); 9 pmReadout *readout = pmFPAviewThisReadout (view, input); 10 11 // select the corresponding images 7 12 psImage *image = readout->image; 8 13 psImage *mask = readout->mask; 14 15 // select background pixels, from output background file, or create 16 background = pmFPAfileReadoutImage (config->files, view, "PSPHOT.BACKGND", 0, 0, PS_TYPE_F32); 17 if (background == NULL) { 18 return false; 19 } 9 20 10 21 // replace the background model … … 17 28 } 18 29 30 psFree (background); 19 31 return true; 20 32 }
Note:
See TracChangeset
for help on using the changeset viewer.
