Changeset 9730 for trunk/psLib/src/imageops/psImagePixelExtract.c
- Timestamp:
- Oct 24, 2006, 12:55:05 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
r8627 r9730 8 8 * @author Robert DeSonia, MHPCC 9 9 * 10 * @version $Revision: 1.2 7$ $Name: not supported by cvs2svn $11 * @date $Date: 2006- 08-26 04:34:28$10 * @version $Revision: 1.28 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2006-10-24 22:52:55 $ 12 12 * 13 13 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 18 18 19 19 #include "psMemory.h" 20 #include "psVector.h" 20 21 #include "psImagePixelExtract.h" 21 22 #include "psError.h" … … 392 393 if (direction == PS_CUT_X_POS || direction == PS_CUT_X_NEG) { 393 394 psVector* imgVec = psVectorAlloc(numRows, type); 394 imgVec->n = imgVec->nalloc;395 395 psVector* maskVec = NULL; 396 396 psMaskType* maskData = NULL; … … 417 417 if (mask != NULL) { 418 418 maskVec = psVectorAlloc(numRows, mask->type.type); 419 maskVec->n = maskVec->nalloc;420 419 } 421 420 #define PSIMAGE_CUT_VERTICAL(TYPE) \ … … 855 854 // n.b. alloc enough for the data by making the vectors slightly larger 856 855 // than the area of the region of interest. 857 buffer[lcv] = psVectorAlloc(1+4*(rSq[lcv+1]-rSq[lcv]), 858 input->type.type); 859 buffer[lcv]->n = 0; 856 buffer[lcv] = psVectorAllocEmpty(1+4*(rSq[lcv+1]-rSq[lcv]), 857 input->type.type); 860 858 861 859 bufferMask[lcv] = NULL; 862 860 if (mask != NULL) { 863 bufferMask[lcv] = psVectorAlloc(1+4*(rSq[lcv+1]-rSq[lcv]), 864 PS_TYPE_MASK); 865 bufferMask[lcv]->n = 0; 861 bufferMask[lcv] = psVectorAllocEmpty(1+4*(rSq[lcv+1]-rSq[lcv]), 862 PS_TYPE_MASK); 866 863 } 867 864 }
Note:
See TracChangeset
for help on using the changeset viewer.
