IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 7, 2007, 4:14:29 PM (20 years ago)
Author:
eugene
Message:

working version with locally-linear map

File:
1 edited

Legend:

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

    r10957 r10958  
    88    psPlaneTransformApply (FP, fpaSrc->fromTPA, TP); \
    99    psPlaneTransformApply (srcPix, chipSrc->fromFPA, FP); \
    10     *minX = PS_MAX (*minX, srcPix->x); \
    11     *minY = PS_MAX (*minY, srcPix->y); \
    12     *maxX = PS_MIN (*maxX, srcPix->x); \
    13     *maxY = PS_MIN (*maxY, srcPix->y);
     10    *minX = PS_MIN (*minX, srcPix->x); \
     11    *minY = PS_MIN (*minY, srcPix->y); \
     12    *maxX = PS_MAX (*maxX, srcPix->x); \
     13    *maxY = PS_MAX (*maxY, srcPix->y);
    1414
    1515// we are warping from src to dest.  find the max overlapping pixels in the INPUT (src)
     
    3030    pmFPA *fpaDest = chipDest->parent;
    3131
    32     *minX = 0;
    33     *minY = 0;
    34     *maxX = src->image->numCols;
    35     *maxY = src->image->numRows;
     32    *minX = src->image->numCols;
     33    *minY = src->image->numRows;
     34    *maxX = 0;
     35    *maxY = 0;
    3636
    3737    // XXX save these as static for speed?
     
    7575    TEST_MINMAX;
    7676
     77    *minX = PS_MAX (*minX, 0);
     78    *minY = PS_MAX (*minY, 0);
     79    *maxX = PS_MIN (*maxX, src->image->numCols);
     80    *maxY = PS_MIN (*maxY, src->image->numRows);
     81
     82    psFree (srcPix);
     83    psFree (destPix);
     84    psFree (FP);
     85    psFree (TP);
     86    psFree (sky);
     87
    7788    return true;
    7889}
Note: See TracChangeset for help on using the changeset viewer.