IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 25, 2005, 5:35:03 PM (21 years ago)
Author:
drobbin
Message:

Added tests for ImageInit, RegionForSquare, RegionForImage. edited Init

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

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/mathtypes/psImage.c

    r4815 r4886  
    99 *  @author Ross Harman, MHPCC
    1010 *
    11  *  @version $Revision: 1.75 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2005-08-18 21:44:40 $
     11 *  @version $Revision: 1.76 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2005-08-26 03:35:02 $
    1313 *
    1414 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    209209    psF32 vF32;
    210210    psF64 vF64;
     211    int temp;
    211212
    212213    if (image == NULL)
     
    217218    switch (image->type.type) {
    218219    case PS_TYPE_U8:
    219         vU8 = va_arg (argp, psU32);
    220 
     220        temp = va_arg (argp, psU32);
     221        if ( temp >= 0 || temp <= 255 )
     222            vU8 = temp;
     223        else
     224            psError(PS_ERR_BAD_PARAMETER_VALUE, true, "Error:  U8 Value out of Range.\n");
    221225        for (int iy = 0; iy < image->numRows; iy++) {
    222226            for (int ix = 0; ix < image->numCols; ix++) {
     
    224228            }
    225229        }
    226         break;
     230        return (true);
    227231
    228232    case PS_TYPE_F32:
  • trunk/psLib/src/mathtypes/psImage.h

    r4815 r4886  
    1111 *  @author Ross Harman, MHPCC
    1212 *
    13  *  @version $Revision: 1.62 $ $Name: not supported by cvs2svn $
    14  *  @date $Date: 2005-08-18 21:44:40 $
     13 *  @version $Revision: 1.63 $ $Name: not supported by cvs2svn $
     14 *  @date $Date: 2005-08-26 03:35:02 $
    1515 *
    1616 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
Note: See TracChangeset for help on using the changeset viewer.