Changeset 9730 for trunk/psModules/src/objects/pmPeaks.c
- Timestamp:
- Oct 24, 2006, 12:55:05 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/objects/pmPeaks.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/objects/pmPeaks.c
r8815 r9730 6 6 * @author EAM, IfA: significant modifications. 7 7 * 8 * @version $Revision: 1. 9$ $Name: not supported by cvs2svn $9 * @date $Date: 2006- 09-15 09:49:01$8 * @version $Revision: 1.10 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2006-10-24 22:55:05 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 40 40 41 41 if (list == NULL) { 42 list = psArrayAlloc(100); 43 list->n = 0; 42 list = psArrayAllocEmpty(100); 44 43 } 45 44 psArrayAdd(list, 100, tmpPeak); … … 69 68 tmpVector->data.F32[col] = image->data.F32[row][col]; 70 69 } 71 tmpVector->n = image->numCols;72 70 psTrace("psModules.objects", 4, "---- %s() end ----\n", __func__); 73 71 return(tmpVector); … … 194 192 if (n == 1) { 195 193 psVector *tmpVector = NULL; 196 ;197 194 if (vector->data.F32[0] > threshold) { 198 195 tmpVector = psVectorAlloc(1, PS_TYPE_U32); 199 196 tmpVector->data.U32[0] = 0; 200 tmpVector->n = 1;201 197 } else { 202 198 tmpVector = psVectorAlloc(0, PS_TYPE_U32); … … 238 234 // 239 235 psVector *tmpVector = psVectorAlloc(count, PS_TYPE_U32); 240 tmpVector->n = count;241 236 count = 0; 242 237 … … 544 539 PS_ASSERT_PTR_NON_NULL(peaks, NULL); 545 540 546 psArray *output = psArrayAlloc (200); 547 output->n = 0; 541 psArray *output = psArrayAllocEmpty (200); 548 542 549 543 psTrace (".pmObjects.pmCullPeaks", 3, "list size is %ld\n", peaks->n);
Note:
See TracChangeset
for help on using the changeset viewer.
