IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 20729


Ignore:
Timestamp:
Nov 13, 2008, 2:21:54 PM (17 years ago)
Author:
bills
Message:

bump value by .5 before converting to integer. we were missing the top
row in the skycell without this

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/magic/remove/src/warpedpixels.c

    r20665 r20729  
    122122#endif
    123123    // Now set the touched pixels
    124     int ymin = fmax(0, pt[1].y);
    125     int ymax = fmin(pt[3].y + .5, sf->warpedPixels->numRows - 1);
    126 #ifdef DEBUG_PRINT
     124    int ymin = fmax(0, pt[1].y );
     125    int ymax = fmin(pt[3].y + 0.5, sf->warpedPixels->numRows - 1);
     126#if (DEBUG_PRINT > 1)
    127127    printf("\nymin: %d ymax: %d\n", ymin, ymax);
    128128#endif
     
    143143            xright = sf->warpedPixels->numCols - 1;
    144144        }
    145 #ifdef DEBUG_PRINT
     145#if (DEBUG_PRINT > 1)
    146146        printf("  y: %d xleft: %d xright: %d\n", y, xleft, xright);
    147147#endif
Note: See TracChangeset for help on using the changeset viewer.