IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 25363


Ignore:
Timestamp:
Sep 13, 2009, 4:58:29 PM (17 years ago)
Author:
eugene
Message:

use pixel coords not pixel index

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/20090715/psphot/src/psphotEllipticalProfile.c

    r25105 r25363  
    3838        for (int ix = 0; ix < source->pixels->numCols; ix++) {
    3939
    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;
    4243
    4344            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;
    4545
    4646            psVectorAppend(radius, sqrt(r2));
Note: See TracChangeset for help on using the changeset viewer.