IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 7, 2005, 6:03:09 PM (21 years ago)
Author:
Paul Price
Message:

Fixed half-pixel problem. Reassessed default parameters.

File:
1 edited

Legend:

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

    r3375 r3387  
    190190        for (int y = 0; y < ny; y++) {
    191191            for (int x = 0; x < nx; x++) {
    192 
    193192                // Only transform those pixels requested
    194193                if (!region || (region && region->data.U8[y][x])) {
     
    199198                   
    200199                    // 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,
    203202                                                                              PS_INTERPOLATE_BILINEAR);
    204203                    // Error is actually the variance
    205204                    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,
    208207                                                                                            mask, 1, 0.0);
    209208                } // Pixels of interest
Note: See TracChangeset for help on using the changeset viewer.