IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 9, 2013, 12:26:48 PM (13 years ago)
Author:
eugene
Message:

major upgrades to pswarp to enable skycell warp -> chip

File:
1 edited

Legend:

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

    r34800 r35563  
    8989
    9090    for (int y = yMin; y < yMax; y++) {
     91
     92      int yOut = y - outRow0; ///< Position on output image
     93
    9194        for (int x = xMin; x < xMax; x++) {
    9295            // Only transform those pixels requested
     
    9497                continue;
    9598            }
     99
     100            int xOut = x - outCol0;
     101
     102            // XXX the existing image may already have valid data -- probably should keep
     103            // the best, but for the moment, just keep the pixel which is not NAN
     104            if (isfinite(outImageData[yOut][xOut])) continue;
     105
    96106            // pswarpMapApply converts the output coordinate (x,y) to the input coordinate.
    97107            // both are in the parent frames of the input and output images.
     
    127137            }
    128138
    129             int xOut = x - outCol0, yOut = y - outRow0; ///< Position on output image
    130 
    131139            if (outImageData) {
    132                 outImageData[yOut][xOut] = imageValue * jacobian;
     140              // XXX TEST outImageData[yOut][xOut] = value;
     141              outImageData[yOut][xOut] = imageValue * jacobian;
    133142            }
    134143            if (outVarData) {
Note: See TracChangeset for help on using the changeset viewer.