IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 12, 2005, 9:12:01 AM (21 years ago)
Author:
desonia
Message:

massive restructuring of codebase.

File:
1 edited

Legend:

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

    r3977 r4540  
    88 *  @author Robert DeSonia, MHPCC
    99 *
    10  *  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
    11  *  @date $Date: 2005-05-19 05:18:20 $
     10 *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
     11 *  @date $Date: 2005-07-12 19:12:01 $
    1212 *
    1313 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    3131{
    3232    psU32 elementSize;          // size of image element in bytes
    33     psU32 inputColOffset;       // offset in bytes to first subset pixel in input row
     33    psS32 inputColOffset;       // offset in bytes to first subset pixel in input row
     34
     35    if ( col0 < 0 || row0 < 0 ) {
     36        //        psError(PS_ERR_BAD_PARAMETER_VALUE, true,
     37        //                PS_ERRORTEXT_psImage_SUBSET_RANGE_INVALID);
     38        psError(PS_ERR_BAD_PARAMETER_VALUE, true,
     39                PS_ERRORTEXT_psImage_SUBSET_RANGE_INVALID,
     40                col0, col1-1, row0, row1-1,
     41                image->numCols-1, image->numRows-1);
     42        return NULL;
     43    }
    3444
    3545    if (image == NULL || image->data.V == NULL) {
     
    6474        return NULL;
    6575    }
     76
     77
     78
    6679    psS32 numRows = row1-row0;
    6780    psS32 numCols = col1-col0;
     
    94107
    95108    out->data.V = psRealloc(out->data.V,sizeof(psPtr)*numRows); // resize row pointer array
    96     *(psType*)&out->type = image->type;
    97     *(psU32*)&out->numCols = numCols;
    98     *(psU32*)&out->numRows = numRows;
     109    *(psMathType*)&out->type = image->type;
     110    //    *(psU32*)&out->numCols = numCols;
     111    //    *(psU32*)&out->numRows = numRows;
     112    *(psS32*)&out->numCols = numCols;
     113    *(psS32*)&out->numRows = numRows;
    99114    *(psS32*)&out->row0 = row0;
    100115    *(psS32*)&out->col0 = col0;
Note: See TracChangeset for help on using the changeset viewer.