Changeset 6484 for trunk/psLib/src/imageops/psImagePixelExtract.c
- Timestamp:
- Feb 24, 2006, 1:43:16 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/imageops/psImagePixelExtract.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
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.
