IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 9, 2009, 8:42:16 AM (17 years ago)
Author:
eugene
Message:

0.5 pix center corrections

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/20090715/psModules/src/objects/pmSourceFitSet.c

    r23487 r25303  
    483483
    484484            // 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);
    487488            x->data[nPix] = (psPtr *) coord;
    488489            y->data.F32[nPix] = source->pixels->data.F32[i][j];
Note: See TracChangeset for help on using the changeset viewer.