IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 3684 for trunk/psLib/src/image


Ignore:
Timestamp:
Apr 8, 2005, 7:58:58 AM (21 years ago)
Author:
desonia
Message:

changed name of fileUtils to dataIO to better coorespond to the latest
SDRS.

Location:
trunk/psLib/src/image
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/image/Makefile.am

    r3127 r3684  
    55        -I$(top_srcdir)/src/collections \
    66        -I$(top_srcdir)/src/dataManip \
    7         -I$(top_srcdir)/src/fileUtils \
     7        -I$(top_srcdir)/src/dataIO \
    88        -I$(top_srcdir)/src/sysUtils \
    99        $(all_includes)
  • trunk/psLib/src/image/psImageExtraction.c

    r3682 r3684  
    99 *  @author Robert DeSonia, MHPCC
    1010 *
    11  *  @version $Revision: 1.34 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2005-04-07 20:27:41 $
     11 *  @version $Revision: 1.35 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2005-04-08 17:58:57 $
    1313 *
    1414 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    428428        imgVec = psAlloc(sizeof(psVector));
    429429        imgVec->type = in->type;
    430         imgVec->n = imgVec->nalloc = numCols;
     430        imgVec->n = *(int*)&imgVec->nalloc = numCols;
    431431        if (mask != NULL) {
    432432            maskVec = psAlloc(sizeof(psVector));
    433433            maskVec->type = mask->type;
    434             maskVec->n = maskVec->nalloc = numCols;
     434            maskVec->n = *(int*)&maskVec->nalloc = numCols;
    435435        }
    436436        // recycle output to make a proper sized/type output structure
  • trunk/psLib/src/image/psImageStats.c

    r3493 r3684  
    99 *  @author GLG, MHPCC
    1010 *
    11  *  @version $Revision: 1.70 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2005-03-24 19:39:53 $
     11 *  @version $Revision: 1.71 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2005-04-08 17:58:57 $
    1313 *
    1414 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    6161        junkData = (psVector *) psAlloc(sizeof(psVector));
    6262        junkData->type = in->type;
    63         junkData->nalloc = in->numRows * in->numCols;
     63        *(int*)&junkData->nalloc = in->numRows * in->numCols;
    6464        junkData->n = junkData->nalloc;
    6565        junkData->data.U8 = in->data.V[0];      // since psImage data is contiguous...
     
    8585            junkMask = psAlloc(sizeof(psVector));
    8686            junkMask->type = mask->type;
    87             junkMask->nalloc = mask->numRows * mask->numCols;
     87            *(int*)&junkMask->nalloc = mask->numRows * mask->numCols;
    8888            junkMask->n = junkMask->nalloc;
    8989            junkMask->data.U8 = mask->data.V[0];
     
    134134        junkData = (psVector *) psAlloc(sizeof(psVector));
    135135        junkData->type = in->type;
    136         junkData->nalloc = in->numRows * in->numCols;
     136        *(int*)&junkData->nalloc = in->numRows * in->numCols;
    137137        junkData->n = junkData->nalloc;
    138138        junkData->data.U8 = in->data.V[0];      // since psImage data is contiguous...
     
    158158            junkMask = psAlloc(sizeof(psVector));
    159159            junkMask->type = mask->type;
    160             junkMask->nalloc = mask->numRows * mask->numCols;
     160            *(int*)&junkMask->nalloc = mask->numRows * mask->numCols;
    161161            junkMask->n = junkMask->nalloc;
    162162            junkMask->data.U8 = mask->data.V[0];
Note: See TracChangeset for help on using the changeset viewer.