IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 20371


Ignore:
Timestamp:
Oct 24, 2008, 2:59:21 PM (18 years ago)
Author:
eugene
Message:

fix parity cell->chip conversion

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dvoTools/src/dvoApplyCorrReadout.c

    r20180 r20371  
    4747    // coordinates to the correction cell/pixel coords.
    4848    for (int j = 0; j < inImage->numRows; j++) {
    49         int jC = (yParity < 0) ? y0 + j*yParity : y0 + j*yParity + 1;
     49        int jC = y0 + j*yParity;
    5050        for (int i = 0; i < inImage->numCols; i++) {
    51             int iC = (xParity < 0) ? x0 + i*xParity : x0 + i*xParity + 1;
     51            int iC = x0 + i*xParity;
    5252            inImage->data.F32[j][i] *= corrImage->data.F32[jC][iC];
    5353        }
Note: See TracChangeset for help on using the changeset viewer.