IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 6, 2011, 11:00:22 AM (15 years ago)
Author:
eugene
Message:

merge changes from trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20110710/pswarp/src/pswarpMapGrid.c

    r23487 r32337  
    3232    int Ny = src->image->numRows + src->image->row0;
    3333
    34     // allocate an extra superpixel to carry the remainder
    35     int nXpts = Nx / nXpix;
    36     int nYpts = Ny / nYpix;
    37     if (Nx % nXpix) nXpts ++;
    38     if (Ny % nYpix) nYpts ++;
     34    // always allocate an extra superpixel to handle spillover
     35    int nXpts = (int)(Nx / nXpix) + 1;
     36    int nYpts = (int)(Ny / nYpix) + 1;
    3937
    4038    // create the grid of maps
Note: See TracChangeset for help on using the changeset viewer.