Changeset 15334
- Timestamp:
- Oct 18, 2007, 3:28:21 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/pswarp/src/pswarpTransformReadout_Opt.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pswarp/src/pswarpTransformReadout_Opt.c
r14902 r15334 179 179 pswarpMap *map = sourceGrid->maps[xGrid][yGrid]; // Locally linear transformation 180 180 double xOut, yOut; // Output coordinates 181 if (!pswarpMapApply(&xOut, &yOut, map, xIn , yIn)) {181 if (!pswarpMapApply(&xOut, &yOut, map, xIn + 0.5, yIn + 0.5)) { 182 182 psError(PS_ERR_UNKNOWN, false, "Unable to transform coordinates for source at %f,%f\n", 183 183 xIn, yIn); … … 186 186 return false; 187 187 } 188 xOut += outCol0 ;189 yOut += outRow0 ;188 xOut += outCol0 - 0.5; 189 yOut += outRow0 - 0.5; 190 190 if (xOut < minX || xOut > maxX || yOut < minY || yOut > maxY) { 191 191 // It's not in the output image
Note:
See TracChangeset
for help on using the changeset viewer.
