IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 1508


Ignore:
Timestamp:
Aug 11, 2004, 5:05:48 PM (22 years ago)
Author:
desonia
Message:

...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/image/psImageManip.c

    r1501 r1508  
    1111 *  @author Ross Harman, MHPCC
    1212 *
    13  *  @version $Revision: 1.13 $ $Name: not supported by cvs2svn $
    14  *  @date $Date: 2004-08-12 02:46:28 $
     13 *  @version $Revision: 1.14 $ $Name: not supported by cvs2svn $
     14 *  @date $Date: 2004-08-12 03:05:48 $
    1515 *
    1616 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    552552
    553553psImage* psImageRotate(psImage* out,
    554                        const psImage* in, float angle, float unexposedValue, psImageInterpolateMode mode)
     554                       const psImage* in,
     555                       float angle,
     556                       float unexposedValue,
     557                       psImageInterpolateMode mode)
    555558{
    556559    if (in == NULL) {
     
    702705        // (x-centerX)*sinT;
    703706
    704         int outCols = (int)(abs(numCols * cosT) + abs(numRows * sinT)) + 1;
    705         int outRows = (int)(abs(numCols * sinT) + abs(numRows * cosT)) + 1;
     707        int outCols = round(abs(numCols * cosT) + abs(numRows * sinT)) + 1;
     708        int outRows = round(abs(numCols * sinT) + abs(numRows * cosT)) + 1;
    706709        float minX = (float)outCols / -2.0f;
    707710        int intMinY = outRows / -2;
Note: See TracChangeset for help on using the changeset viewer.