IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 20447


Ignore:
Timestamp:
Oct 28, 2008, 2:00:37 PM (18 years ago)
Author:
eugene
Message:

center on pixel (to 0.5 pixels)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/objects/pmGrowthCurveGenerate.c

    r20233 r20447  
    55 *  @author EAM, IfA
    66 *
    7  *  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
    8  *  @date $Date: 2008-10-17 22:58:41 $
     7 *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
     8 *  @date $Date: 2008-10-29 00:00:37 $
    99 *
    1010 *  Copyright 2004 Institute for Astronomy, University of Hawaii
     
    6363
    6464            // use the center of the center pixel of the image
    65             float xc = ix*readout->image->numCols + 0.5*readout->image->numCols + readout->image->col0 + 0.5;
    66             float yc = iy*readout->image->numRows + 0.5*readout->image->numRows + readout->image->row0 + 0.5;
     65            float xc = (int)(ix*readout->image->numCols + 0.5*readout->image->numCols) + readout->image->col0 + 0.5;
     66            float yc = (int)(iy*readout->image->numRows + 0.5*readout->image->numRows) + readout->image->row0 + 0.5;
    6767
    6868            pmGrowthCurve *growth = pmGrowthCurveForPosition (readout->image, psf, ignore, maskVal, markVal, xc, yc);
Note: See TracChangeset for help on using the changeset viewer.