Changeset 4251 for trunk/psphot/src/fit_galaxies.c
- Timestamp:
- Jun 14, 2005, 3:23:24 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/fit_galaxies.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/fit_galaxies.c
r4114 r4251 8 8 int Nfit = 0; 9 9 int Niter = 0; 10 11 float XBORDER = psMetadataLookupF32 (&status, config, "XBORDER");12 float YBORDER = psMetadataLookupF32 (&status, config, "YBORDER");13 psRegion *keep = psRegionAlloc (XBORDER, -XBORDER, YBORDER, -YBORDER);14 keep = psRegionForImage (keep, image, keep);15 10 16 11 float RADIUS = psMetadataLookupF32 (&status, config, "FIT_RADIUS"); … … 25 20 26 21 // need a better model guess and a better radius choice 27 pmSourceSetPixelCircle (source, image, RADIUS); 28 pmSourceMaskRegion (source, keep); 22 // when radius is not fixed, we will need to check if new radius fits on image 23 # if (0) 24 if (model->radius > OUTER) { 25 // allocate image, noise, mask arrays for each peak (square of radius OUTER) 26 pmSourceDefinePixels (source, imdata, x, y, OUTER); 27 } 28 # endif 29 29 psModel *model = pmSourceModelGuess (source, modelType); 30 30
Note:
See TracChangeset
for help on using the changeset viewer.
