IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 7, 2004, 3:38:05 PM (22 years ago)
Author:
Paul Price
Message:

Working, but not getting faint CRs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/stac/src/stacTransform.c

    r2500 r2661  
    2020                                                   unsigned int maskVal,
    2121                                                   psF64 unexposedValue)
    22 { 
     22{
    2323    double floorX = floor((psF64)(x) - 0.5);
    2424    double floorY = floor((psF64)(y) - 0.5);
     
    206206                (void)psPlaneTransformApply(detector, map, sky);
    207207
    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,
    210210                                                                          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);
    214215                outError->data.F32[y][x] = sqrtf(outError->data.F32[y][x]);
    215216            }
Note: See TracChangeset for help on using the changeset viewer.