Changeset 2661 for trunk/stac/src/stacTransform.c
- Timestamp:
- Dec 7, 2004, 3:38:05 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/stac/src/stacTransform.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/stac/src/stacTransform.c
r2500 r2661 20 20 unsigned int maskVal, 21 21 psF64 unexposedValue) 22 { 22 { 23 23 double floorX = floor((psF64)(x) - 0.5); 24 24 double floorY = floor((psF64)(y) - 0.5); … … 206 206 (void)psPlaneTransformApply(detector, map, sky); 207 207 208 outImage->data.F32[y][x] = (psF32)psImagePixelInterpolate(image, detector->x , detector->y,209 mask, 1, 0.0,208 outImage->data.F32[y][x] = (psF32)psImagePixelInterpolate(image, detector->x + 0.5, 209 detector->y + 0.5, mask, 1, 0.0, 210 210 PS_INTERPOLATE_BILINEAR); 211 outError->data.F32[y][x] = (psF32)p_psImageErrorInterpolateBILINEAR_F32(error, detector->x, 212 detector->y, mask, 1, 213 0.0); 211 outError->data.F32[y][x] = (psF32)p_psImageErrorInterpolateBILINEAR_F32(error, 212 detector->x + 0.5, 213 detector->y + 0.5, 214 mask, 1, 0.0); 214 215 outError->data.F32[y][x] = sqrtf(outError->data.F32[y][x]); 215 216 }
Note:
See TracChangeset
for help on using the changeset viewer.
