Changeset 9730 for trunk/psModules/src/objects/pmSourceContour.c
- Timestamp:
- Oct 24, 2006, 12:55:05 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/objects/pmSourceContour.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/objects/pmSourceContour.c
r8815 r9730 6 6 * @author EAM, IfA: significant modifications. 7 7 * 8 * @version $Revision: 1. 5$ $Name: not supported by cvs2svn $9 * @date $Date: 2006- 09-15 09:49:01$8 * @version $Revision: 1.6 $ $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 … … 240 240 241 241 // Allocate data for x/y pairs. 242 psVector *xVec = psVectorAlloc (100, PS_TYPE_F32);243 psVector *yVec = psVectorAlloc (100, PS_TYPE_F32);242 psVector *xVec = psVectorAllocEmpty(100, PS_TYPE_F32); 243 psVector *yVec = psVectorAllocEmpty(100, PS_TYPE_F32); 244 244 245 245 // First row: find the left and right end-points … … 327 327 // fprintf (stderr, "done\n"); 328 328 psArray *tmpArray = psArrayAlloc(2); 329 tmpArray->n = 2;330 329 331 330 tmpArray->data[0] = (psPtr *) xVec; … … 338 337 pmSourceContour(src, img, level, mode): For an input subImage, and model, this 339 338 routine returns a psArray of coordinates that evaluate to the specified level. 340 339 341 340 XXX: Probably should remove the "image" argument. 342 341 XXX: What type should the output coordinate vectors consist of? col,row? … … 366 365 psVector *xVec = psVectorAlloc(2 * source->pixels->numRows, PS_TYPE_F32); 367 366 psVector *yVec = psVectorAlloc(2 * source->pixels->numRows, PS_TYPE_F32); 368 xVec->n = yVec->n = 2 * source->pixels->numRows;369 367 370 368 // … … 447 445 // 448 446 psArray *tmpArray = psArrayAlloc(2); 449 tmpArray->n = 2;450 447 451 448 tmpArray->data[0] = (psPtr *) yVec;
Note:
See TracChangeset
for help on using the changeset viewer.
