Changeset 6484 for trunk/psLib/src/imageops
- Timestamp:
- Feb 24, 2006, 1:43:16 PM (20 years ago)
- Location:
- trunk/psLib/src/imageops
- Files:
-
- 2 edited
-
psImageGeomManip.c (modified) (2 diffs)
-
psImagePixelExtract.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/imageops/psImageGeomManip.c
r6354 r6484 10 10 * @author Ross Harman, MHPCC 11 11 * 12 * @version $Revision: 1. 19$ $Name: not supported by cvs2svn $13 * @date $Date: 2006-02- 08 01:03:35 $12 * @version $Revision: 1.20 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2006-02-24 23:43:15 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 93 93 } 94 94 maskVec = psVectorAlloc(scale * scale, PS_TYPE_MASK); 95 maskVec->n = maskVec->nalloc; 95 96 maskData = maskVec->data.PS_TYPE_MASK_DATA; 96 97 } -
trunk/psLib/src/imageops/psImagePixelExtract.c
r6294 r6484 8 8 * @author Robert DeSonia, MHPCC 9 9 * 10 * @version $Revision: 1.1 1$ $Name: not supported by cvs2svn $11 * @date $Date: 2006-02- 02 04:41:42$10 * @version $Revision: 1.12 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2006-02-24 23:43:15 $ 12 12 * 13 13 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 326 326 // psStats. 327 327 out = psVectorRecycle(out, numCols, PS_TYPE_F64); 328 out->n = numCols; 328 329 if (coords != NULL) { 329 330 coords = psPixelsRealloc(coords, numCols); … … 342 343 maskVec = psVectorAlloc(numRows, mask->type.type); 343 344 } 345 imgVec->n = imgVec->nalloc; 346 maskVec->n = maskVec->nalloc; 344 347 #define PSIMAGE_CUT_VERTICAL(TYPE) \ 345 348 case PS_TYPE_##TYPE: { \ … … 408 411 imgVec = psAlloc(sizeof(psVector)); 409 412 imgVec->type = input->type; 410 411 413 P_PSVECTOR_SET_NALLOC(imgVec,numCols); 412 imgVec->n = numCols;413 414 if (mask != NULL) { 414 415 maskVec = psAlloc(sizeof(psVector)); 415 416 maskVec->type = mask->type; 416 417 P_PSVECTOR_SET_NALLOC(maskVec,numCols); 417 maskVec->n = numCols;418 418 } 419 419 // recycle output to make a proper sized/type output structure … … 421 421 // psStats. 422 422 out = psVectorRecycle(out, numRows, PS_TYPE_F64); 423 out->n = numRows; 424 imgVec->n = imgVec->nalloc; 425 maskVec->n = maskVec->nalloc; 423 426 if (coords != NULL) { 424 427 coords = psPixelsRealloc(coords, numRows);
Note:
See TracChangeset
for help on using the changeset viewer.
