Changeset 3387 for trunk/stac/src/stacTransform.c
- Timestamp:
- Mar 7, 2005, 6:03:09 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/stac/src/stacTransform.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/stac/src/stacTransform.c
r3375 r3387 190 190 for (int y = 0; y < ny; y++) { 191 191 for (int x = 0; x < nx; x++) { 192 193 192 // Only transform those pixels requested 194 193 if (!region || (region && region->data.U8[y][x])) { … … 199 198 200 199 // Change PS_INTERPOLATE_BILINEAR to best available technique. 201 outImage->data.F32[y][x] = (psF32)psImagePixelInterpolate(image, detector->x + 0.5,202 detector->y + 0.5, mask, 1, 0.0,200 outImage->data.F32[y][x] = (psF32)psImagePixelInterpolate(image, detector->x, 201 detector->y, mask, 1, 0.0, 203 202 PS_INTERPOLATE_BILINEAR); 204 203 // Error is actually the variance 205 204 outError->data.F32[y][x] = (psF32)p_psImageErrorInterpolateBILINEAR_F32(error, 206 detector->x + 0.5,207 detector->y + 0.5,205 detector->x, 206 detector->y, 208 207 mask, 1, 0.0); 209 208 } // Pixels of interest
Note:
See TracChangeset
for help on using the changeset viewer.
