Changeset 17343
- Timestamp:
- Apr 6, 2008, 10:16:12 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20080324/psphot/src/psphotPSFConvModel.c
r17316 r17343 1 # include "psphot .h"1 # include "psphotInternal.h" 2 2 3 3 // save as static values so they may be set externally … … 10 10 pmModel *psphotPSFConvModel (pmReadout *readout, pmSource *source, pmModelType modelType, psMaskType maskVal, int psfSize) { 11 11 12 bool status;13 14 12 // make sure we save a cached copy of the psf flux 15 13 pmSourceCachePSF (source, maskVal); … … 32 30 } 33 31 34 # define USE_DELTA_PSF 032 # define USE_DELTA_PSF 1 35 33 # if (USE_DELTA_PSF) 36 34 // XXX sanity check: convolve with delta function should behave like unconvolved version … … 40 38 } 41 39 } 42 psf->image->data.F32[ 2][2] = 1.0;40 psf->image->data.F32[(int)(0.5*psf->image->numRows)][(int)(0.5*psf->image->numCols)] = 1.0; 43 41 # endif 44 42 … … 120 118 source->mode |= PM_SOURCE_MODE_FITTED; // XXX is this needed? 121 119 120 psFree(psf); 122 121 psFree(myMin); 123 122 psFree(covar);
Note:
See TracChangeset
for help on using the changeset viewer.
