Changeset 25303
- Timestamp:
- Sep 9, 2009, 8:42:16 AM (17 years ago)
- Location:
- branches/eam_branches/20090715/psModules/src/objects
- Files:
-
- 5 edited
-
models/pmModel_GAUSS.c (modified) (1 diff)
-
pmGrowthCurveGenerate.c (modified) (1 diff)
-
pmPSFtry.c (modified) (1 diff)
-
pmSourceFitModel.c (modified) (1 diff)
-
pmSourceFitSet.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/20090715/psModules/src/objects/models/pmModel_GAUSS.c
r20001 r25303 29 29 30 30 // the model is a function of the pixel coordinate (pixcoord[0,1] = x,y) 31 // 0.5 PIX: the parameters are defined in terms of pixel coords, so the incoming pixcoords 32 // values need to be pixel coords 31 33 psF32 PM_MODEL_FUNC(psVector *deriv, 32 34 const psVector *params, -
branches/eam_branches/20090715/psModules/src/objects/pmGrowthCurveGenerate.c
r23989 r25303 65 65 66 66 // use the center of the center pixel of the image 67 // 0.5 PIX: is this offset needed? probably -- the psf model uses 0.5,0.5 as the center, double check 67 68 float xc = (int)(ix*readout->image->numCols + 0.5*readout->image->numCols) + readout->image->col0 + 0.5; 68 69 float yc = (int)(iy*readout->image->numRows + 0.5*readout->image->numRows) + readout->image->row0 + 0.5; -
branches/eam_branches/20090715/psModules/src/objects/pmPSFtry.c
r24206 r25303 191 191 192 192 // set object mask to define valid pixels 193 // XXX 0.5 PIX: is the circle symmetric about the peak coordinate (given 0.5,0.5 center)? 193 194 psImageKeepCircle (source->maskObj, source->peak->x, source->peak->y, options->radius, "OR", markVal); 194 195 -
branches/eam_branches/20090715/psModules/src/objects/pmSourceFitModel.c
r23989 r25303 96 96 97 97 // Convert i/j to image space: 98 coord->data.F32[0] = (psF32) (j + source->pixels->col0); 99 coord->data.F32[1] = (psF32) (i + source->pixels->row0); 98 // 0.5 PIX: the coordinate values must be in pixel coords, not index 99 coord->data.F32[0] = (psF32) (j + 0.5 + source->pixels->col0); 100 coord->data.F32[1] = (psF32) (i + 0.5 + source->pixels->row0); 100 101 x->data[nPix] = (psPtr *) coord; 101 102 y->data.F32[nPix] = source->pixels->data.F32[i][j]; -
branches/eam_branches/20090715/psModules/src/objects/pmSourceFitSet.c
r23487 r25303 483 483 484 484 // Convert i/j to image space: 485 coord->data.F32[0] = (psF32) (j + source->pixels->col0); 486 coord->data.F32[1] = (psF32) (i + source->pixels->row0); 485 // 0.5 PIX: the coordinate values must be in pixel coords, not index 486 coord->data.F32[0] = (psF32) (j + 0.5 + source->pixels->col0); 487 coord->data.F32[1] = (psF32) (i + 0.5 + source->pixels->row0); 487 488 x->data[nPix] = (psPtr *) coord; 488 489 y->data.F32[nPix] = source->pixels->data.F32[i][j];
Note:
See TracChangeset
for help on using the changeset viewer.
