Changeset 35563 for trunk/pswarp/src/pswarpTransformTile.c
- Timestamp:
- May 9, 2013, 12:26:48 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/pswarp/src/pswarpTransformTile.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pswarp/src/pswarpTransformTile.c
r34800 r35563 89 89 90 90 for (int y = yMin; y < yMax; y++) { 91 92 int yOut = y - outRow0; ///< Position on output image 93 91 94 for (int x = xMin; x < xMax; x++) { 92 95 // Only transform those pixels requested … … 94 97 continue; 95 98 } 99 100 int xOut = x - outCol0; 101 102 // XXX the existing image may already have valid data -- probably should keep 103 // the best, but for the moment, just keep the pixel which is not NAN 104 if (isfinite(outImageData[yOut][xOut])) continue; 105 96 106 // pswarpMapApply converts the output coordinate (x,y) to the input coordinate. 97 107 // both are in the parent frames of the input and output images. … … 127 137 } 128 138 129 int xOut = x - outCol0, yOut = y - outRow0; ///< Position on output image130 131 139 if (outImageData) { 132 outImageData[yOut][xOut] = imageValue * jacobian; 140 // XXX TEST outImageData[yOut][xOut] = value; 141 outImageData[yOut][xOut] = imageValue * jacobian; 133 142 } 134 143 if (outVarData) {
Note:
See TracChangeset
for help on using the changeset viewer.
