IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 7, 2007, 6:48:50 AM (20 years ago)
Author:
eugene
Message:

functioning pswarp, needs opt code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pswarp/src/pswarpTransformReadout.c

    r10952 r10954  
    88
    99    // select the current recipe
    10     psMetadata *recipe  = psMetadataLookupPtr (NULL, config->recipes, PSPHOT_RECIPE);
     10    // psMetadata *recipe  = psMetadataLookupPtr (NULL, config->recipes, PSWARP_RECIPE);
    1111
    1212    int outNx = output->image->numCols;
     
    2727    pmChip *chipOutput = cell->parent;
    2828    pmFPA *fpaOutput = chipOutput->parent;
     29
     30    psF32 **outData = output->image->data.F32;
     31    psImage *inImage = input->image;
    2932
    3033    // Iterate over the output image pixels
     
    4851
    4952                // 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?
    5155
     56                // outData[y][x] = (psF32)psImagePixelInterpolate(inImage, inPix->x, inPix->y, mask, 1, NAN, PS_INTERPOLATE_BILINEAR);
     57               
    5258# if (0)
    5359                if (error) {
     
    5864                                                                                            mask, 1, NAN);
    5965                }
    60 # endif
    61 
    62                 outImage->data.F32[y][x] = (outImage->data.F32[y][x] - offset) / scale;
    63 # if (0)
    6466                if (error) {
    6567                    outError->data.F32[y][x] = outError->data.F32[y][x] / SQUARE(scale);
Note: See TracChangeset for help on using the changeset viewer.