Changeset 31878 for trunk/pswarp/src/pswarpMapGrid.c
- Timestamp:
- Jul 14, 2011, 10:39:20 AM (15 years ago)
- File:
-
- 1 edited
-
trunk/pswarp/src/pswarpMapGrid.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pswarp/src/pswarpMapGrid.c
r23487 r31878 32 32 int Ny = src->image->numRows + src->image->row0; 33 33 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; 39 37 40 38 // create the grid of maps
Note:
See TracChangeset
for help on using the changeset viewer.
