IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 17, 2005, 5:13:02 PM (21 years ago)
Author:
drobbin
Message:

* empty log message *

File:
1 edited

Legend:

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

    r4308 r4316  
    1010 *  @author Ross Harman, MHPCC
    1111 *
    12  *  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2005-06-17 23:44:21 $
     12 *  @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2005-06-18 03:13:02 $
    1414 *
    1515 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    174174psImage* psImageResample(psImage* out,
    175175                         const psImage* in,
    176                          psS32 scale,
     176                         int scale,
    177177                         psImageInterpolateMode mode)
    178178{
     
    251251
    252252psImage* psImageRoll(psImage* out,
    253                      const psImage* in,
    254                      psS32 dx,
    255                      psS32 dy)
     253                     const psImage* input,
     254                     int dx,
     255                     int dy)
    256256{
    257257    psS32 outRows;
     
    259259    psS32 elementSize;
    260260
    261     if (in == NULL) {
     261    if (input == NULL) {
    262262        psError(PS_ERR_BAD_PARAMETER_NULL, true,
    263263                PS_ERRORTEXT_psImage_IMAGE_NULL);
     
    267267    // create an output image of the same size
    268268    // and type
    269     outRows = in->numRows;
    270     outCols = in->numCols;
    271     elementSize = PSELEMTYPE_SIZEOF(in->type.type);
    272     out = psImageRecycle(out, outCols, outRows, in->type.type);
     269    outRows = input->numRows;
     270    outCols = input->numCols;
     271    elementSize = PSELEMTYPE_SIZEOF(input->type.type);
     272    out = psImageRecycle(out, outCols, outRows, input->type.type);
    273273
    274274    // make dx and dy between 0 and outCols or
     
    292292            inRowNumber -= outRows;
    293293        }
    294         psU8* inRow = in->data.U8[inRowNumber]; // use byte arithmetic for all types
     294        psU8* inRow = input->data.U8[inRowNumber]; // use byte arithmetic for all types
    295295        psU8* outRow = out->data.U8[row];
    296296
Note: See TracChangeset for help on using the changeset viewer.