IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 14, 2011, 10:39:20 AM (15 years ago)
Author:
eugene
Message:

fixed endpost error in warp super pixels (always make an extra superpixel)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pswarp/src/pswarpMapGrid.c

    r23487 r31878  
    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.