Changeset 25363
- Timestamp:
- Sep 13, 2009, 4:58:29 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/20090715/psphot/src/psphotEllipticalProfile.c
r25105 r25363 38 38 for (int ix = 0; ix < source->pixels->numCols; ix++) { 39 39 40 float x = ix - source->peak->xf + source->pixels->col0; 41 float y = iy - source->peak->yf + source->pixels->row0; 40 // 0.5 PIX: get radius as a function of pixel coord 41 float x = ix + 0.5 - source->peak->xf + source->pixels->col0; 42 float y = iy + 0.5 - source->peak->yf + source->pixels->row0; 42 43 43 44 float r2 = 0.5*PS_SQR(x/Sxx) + 0.5*PS_SQR(y/Syy) + x*y*Sxy; 44 // float r2 = PS_SQR(x/Sxx) + PS_SQR(y/Syy) + x*y*Sxy;45 45 46 46 psVectorAppend(radius, sqrt(r2));
Note:
See TracChangeset
for help on using the changeset viewer.
