Changeset 3684 for trunk/psLib/src/image
- Timestamp:
- Apr 8, 2005, 7:58:58 AM (21 years ago)
- Location:
- trunk/psLib/src/image
- Files:
-
- 3 edited
-
Makefile.am (modified) (1 diff)
-
psImageExtraction.c (modified) (2 diffs)
-
psImageStats.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/image/Makefile.am
r3127 r3684 5 5 -I$(top_srcdir)/src/collections \ 6 6 -I$(top_srcdir)/src/dataManip \ 7 -I$(top_srcdir)/src/ fileUtils\7 -I$(top_srcdir)/src/dataIO \ 8 8 -I$(top_srcdir)/src/sysUtils \ 9 9 $(all_includes) -
trunk/psLib/src/image/psImageExtraction.c
r3682 r3684 9 9 * @author Robert DeSonia, MHPCC 10 10 * 11 * @version $Revision: 1.3 4$ $Name: not supported by cvs2svn $12 * @date $Date: 2005-04-0 7 20:27:41$11 * @version $Revision: 1.35 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2005-04-08 17:58:57 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 428 428 imgVec = psAlloc(sizeof(psVector)); 429 429 imgVec->type = in->type; 430 imgVec->n = imgVec->nalloc = numCols;430 imgVec->n = *(int*)&imgVec->nalloc = numCols; 431 431 if (mask != NULL) { 432 432 maskVec = psAlloc(sizeof(psVector)); 433 433 maskVec->type = mask->type; 434 maskVec->n = maskVec->nalloc = numCols;434 maskVec->n = *(int*)&maskVec->nalloc = numCols; 435 435 } 436 436 // recycle output to make a proper sized/type output structure -
trunk/psLib/src/image/psImageStats.c
r3493 r3684 9 9 * @author GLG, MHPCC 10 10 * 11 * @version $Revision: 1.7 0$ $Name: not supported by cvs2svn $12 * @date $Date: 2005-0 3-24 19:39:53$11 * @version $Revision: 1.71 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2005-04-08 17:58:57 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 61 61 junkData = (psVector *) psAlloc(sizeof(psVector)); 62 62 junkData->type = in->type; 63 junkData->nalloc = in->numRows * in->numCols;63 *(int*)&junkData->nalloc = in->numRows * in->numCols; 64 64 junkData->n = junkData->nalloc; 65 65 junkData->data.U8 = in->data.V[0]; // since psImage data is contiguous... … … 85 85 junkMask = psAlloc(sizeof(psVector)); 86 86 junkMask->type = mask->type; 87 junkMask->nalloc = mask->numRows * mask->numCols;87 *(int*)&junkMask->nalloc = mask->numRows * mask->numCols; 88 88 junkMask->n = junkMask->nalloc; 89 89 junkMask->data.U8 = mask->data.V[0]; … … 134 134 junkData = (psVector *) psAlloc(sizeof(psVector)); 135 135 junkData->type = in->type; 136 junkData->nalloc = in->numRows * in->numCols;136 *(int*)&junkData->nalloc = in->numRows * in->numCols; 137 137 junkData->n = junkData->nalloc; 138 138 junkData->data.U8 = in->data.V[0]; // since psImage data is contiguous... … … 158 158 junkMask = psAlloc(sizeof(psVector)); 159 159 junkMask->type = mask->type; 160 junkMask->nalloc = mask->numRows * mask->numCols;160 *(int*)&junkMask->nalloc = mask->numRows * mask->numCols; 161 161 junkMask->n = junkMask->nalloc; 162 162 junkMask->data.U8 = mask->data.V[0];
Note:
See TracChangeset
for help on using the changeset viewer.
