IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 22, 2007, 12:37:59 PM (19 years ago)
Author:
Paul Price
Message:

Fixing tsum.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/imageops/psImageConvolve.c

    r12000 r12001  
    77/// @author Eugene Magnier, IfA
    88///
    9 /// @version $Revision: 1.46 $ $Name: not supported by cvs2svn $
    10 /// @date $Date: 2007-02-22 22:36:21 $
     9/// @version $Revision: 1.47 $ $Name: not supported by cvs2svn $
     10/// @date $Date: 2007-02-22 22:37:59 $
    1111///
    1212/// Copyright 2004-2007 Institute for Astronomy, University of Hawaii
     
    125125    int xMin, xMax, yMin, yMax;         // Range of values for kernel
    126126    int xLast, yLast;                   // Last location, for relative shifts
    127     int x0, y0;                         // Final location; everything is relative to this
     127    float tSum = tShifts->data.F32[0];   // Sum of the times
    128128    xLast = xMin = xMax = xShifts->data.S32[0];
    129129    yLast = yMin = yMax = yShifts->data.S32[0];
     130    int x0, y0;                         // Final location; everything is relative to this
    130131    x0 = xShifts->data.S32[num - 1];
    131132    y0 = yShifts->data.S32[num - 1];
    132     float tSum = tShifts->data.F32[num];   // Sum of the times
    133133    for (long i = 1; i < num; i++) {
    134134        int x = xShifts->data.S32[i] - x0; // x position in kernel
Note: See TracChangeset for help on using the changeset viewer.