IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 21040


Ignore:
Timestamp:
Dec 18, 2008, 2:24:45 PM (17 years ago)
Author:
eugene
Message:

allow points a little beyond edge of image

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/imageops/psImageUnbin.c

    r21036 r21040  
    77 *  @author Eugene Magnier, IfA
    88 *
    9  *  @version $Revision: 1.10 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2008-12-18 21:02:30 $
     9 *  @version $Revision: 1.11 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2008-12-19 00:24:45 $
    1111 *
    1212 *  Copyright 2007 Institute for Astronomy, University of Hawaii
     
    269269    // allow extrapolation a small distance beyond the edge of valid pixels, but no
    270270    // further (this allows the nXskip,nYskip boundary areas to be used as well)
    271     int nXedge = 0.125*in->numCols;
    272     int nYedge = 0.125*in->numRows;
     271    float nXedge = 0.125*in->numCols;
     272    float nYedge = 0.125*in->numRows;
    273273
    274274    if ((x < -nXedge) || (x > in->numCols + nXedge) || (y < -nYedge) || (y > in->numRows + nYedge)) {
Note: See TracChangeset for help on using the changeset viewer.