Changeset 10954 for trunk/pswarp/src/pswarpTransformReadout.c
- Timestamp:
- Jan 7, 2007, 6:48:50 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/pswarp/src/pswarpTransformReadout.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pswarp/src/pswarpTransformReadout.c
r10952 r10954 8 8 9 9 // select the current recipe 10 psMetadata *recipe = psMetadataLookupPtr (NULL, config->recipes, PSPHOT_RECIPE);10 // psMetadata *recipe = psMetadataLookupPtr (NULL, config->recipes, PSWARP_RECIPE); 11 11 12 12 int outNx = output->image->numCols; … … 27 27 pmChip *chipOutput = cell->parent; 28 28 pmFPA *fpaOutput = chipOutput->parent; 29 30 psF32 **outData = output->image->data.F32; 31 psImage *inImage = input->image; 29 32 30 33 // Iterate over the output image pixels … … 48 51 49 52 // XXX get interpolation method from the recipe 50 outImage->data.F32[y][x] = (psF32)psImagePixelInterpolate(image, inPix->x, inPix->y, mask, 1, NAN, PS_INTERPOLATE_BILINEAR); 53 outData[y][x] = (psF32)psImagePixelInterpolate(inImage, inPix->x, inPix->y, NULL, 1, NAN, PS_INTERPOLATE_BILINEAR); 54 // modify zero and scale? 51 55 56 // outData[y][x] = (psF32)psImagePixelInterpolate(inImage, inPix->x, inPix->y, mask, 1, NAN, PS_INTERPOLATE_BILINEAR); 57 52 58 # if (0) 53 59 if (error) { … … 58 64 mask, 1, NAN); 59 65 } 60 # endif61 62 outImage->data.F32[y][x] = (outImage->data.F32[y][x] - offset) / scale;63 # if (0)64 66 if (error) { 65 67 outError->data.F32[y][x] = outError->data.F32[y][x] / SQUARE(scale);
Note:
See TracChangeset
for help on using the changeset viewer.
