IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 23, 2008, 11:24:51 AM (18 years ago)
Author:
Paul Price
Message:

Adding range information to stats.

File:
1 edited

Legend:

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

    r15334 r17780  
    9797        nextGridX = nextGridXo;
    9898        map = grid->maps[gridX][gridY];
     99        int yOut = y - outRow0;         // Position on image
    99100        for (int x = minX; x < maxX; x++) {
    100101            if (x >= nextGridX) {
     
    127128                psError(PS_ERR_UNKNOWN, false, "Unable to interpolate image.");
    128129                psFree(interp);
    129                 psFree (inPix);
    130                 psFree (grid);
     130                psFree(inPix);
     131                psFree(grid);
    131132                return false;
    132133            }
    133             outImageData[y-outRow0][x-outCol0] = imageValue;
     134            int xOut = x - outCol0;     // Position on image
     135            outImageData[yOut][xOut] = imageValue;
    134136            if (inVar) {
    135                 outVarData[y-outRow0][x-outCol0] = varValue;
     137                outVarData[yOut][xOut] = varValue;
    136138            }
    137139            if (outMaskData) {
    138                 outMaskData[y-outRow0][x-outCol0] = maskValue;
    139             }
    140         }
    141     }
    142 
     140                outMaskData[yOut][xOut] = maskValue;
     141            }
     142        }
     143    }
    143144    psFree(interp);
    144     psFree (inPix);
    145     psFree (grid);
     145    psFree(inPix);
     146    psFree(grid);
    146147
    147148    // Transform sources
Note: See TracChangeset for help on using the changeset viewer.