IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 7541


Ignore:
Timestamp:
Jun 13, 2006, 12:30:20 PM (20 years ago)
Author:
Paul Price
Message:

Changing type of x,y to int instead of long.

Location:
trunk/psLib/src/math
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/math/psPolynomialUtils.c

    r7467 r7541  
    121121}
    122122
    123 psPolynomial2D *psImageBicubeFit(const psImage *image, long x, long y)
     123psPolynomial2D *psImageBicubeFit(const psImage *image, int x, int y)
    124124{
    125125    PS_ASSERT_IMAGE_NON_NULL(image, NULL);
    126126
    127     long ix = x - image->col0;
    128     long iy = y - image->row0;
     127    int ix = x - image->col0;
     128    int iy = y - image->row0;
    129129
    130130    PS_ASSERT_INT_WITHIN_RANGE(ix, 1, image->numCols - 1, NULL);
  • trunk/psLib/src/math/psPolynomialUtils.h

    r7380 r7541  
    2929// fit a 2D 2nd order polynomial to the 9 pixels centered on (x,y)
    3030psPolynomial2D *psImageBicubeFit(const psImage *image, // Image to fit
    31                                  long x, long y // Pixels of centre of fit
     31                                 int x, int y // Pixels of centre of fit
    3232                                );
    3333
Note: See TracChangeset for help on using the changeset viewer.