IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 18, 2012, 6:10:35 PM (14 years ago)
Author:
watersc1
Message:

Update to ppSkycell to add a proper header and a proper WCS. Finally.

Fix WCS bug in pswarpLoop that was revealed when working on ppSkycell. Finally.

Changed psImagePixelManip to only copy finite pixel values. This is likely "slow" relative to the old version, and it looks like I'm getting some random default values. In any case, this fixes the NAN striping that was present in the ppSkycell outputs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/czw_branch/20120906/psLib/src/imageops/psImagePixelManip.c

    r12953 r34449  
    222222            ps##DATATYPE* overlayRow = overlay->data.DATATYPE[row-y0]; \
    223223            for (int col=x0;col<imageColLimit;col++) { \
     224              if (isfinite(overlayRow[col - x0])) { \
    224225                imageRow[col] OP overlayRow[col-x0]; \
     226              } \
    225227            } \
    226228        } \
     
    248250    // a drawback?  We fall back on the loop if we have to change types.
    249251    #define psImageOverlaySetLoop(DATATYPE) { \
    250         if (image->type.type == overlay->type.type) { \
     252      if (0) { \
    251253            int numBytes = (imageColLimit - x0) * sizeof(ps##DATATYPE); \
    252254            for (int row = y0; row < imageRowLimit; row++) { \
     
    277279        break; \
    278280    case '=': \
    279         psImageOverlaySetLoop(DATATYPE); \
     281        psImageOverlaySetLoop(DATATYPE);                \
    280282        break; \
    281283    default: \
Note: See TracChangeset for help on using the changeset viewer.