Changeset 7055
- Timestamp:
- May 3, 2006, 1:16:16 PM (20 years ago)
- Location:
- trunk/psLib/src
- Files:
-
- 3 edited
-
imageops/psImagePixelExtract.c (modified) (3 diffs)
-
math/psStats.c (modified) (2 diffs)
-
mathtypes/psVector.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/imageops/psImagePixelExtract.c
r6806 r7055 8 8 * @author Robert DeSonia, MHPCC 9 9 * 10 * @version $Revision: 1.1 8$ $Name: not supported by cvs2svn $11 * @date $Date: 2006-0 4-06 22:55:18$10 * @version $Revision: 1.19 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2006-05-03 23:16:16 $ 12 12 * 13 13 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 474 474 if (direction == PS_CUT_X_POS || direction == PS_CUT_X_NEG) { 475 475 psVector* imgVec = psVectorAlloc(numRows, type); 476 imgVec->n = imgVec->nalloc; 476 477 psVector* maskVec = NULL; 477 478 psMaskType* maskData = NULL; … … 498 499 if (mask != NULL) { 499 500 maskVec = psVectorAlloc(numRows, mask->type.type); 500 } 501 imgVec->n = imgVec->nalloc; 502 maskVec->n = maskVec->nalloc; 501 maskVec->n = maskVec->nalloc; 502 } 503 503 #define PSIMAGE_CUT_VERTICAL(TYPE) \ 504 504 case PS_TYPE_##TYPE: { \ -
trunk/psLib/src/math/psStats.c
r6484 r7055 16 16 * use ->min and ->max (PS_STAT_USE_RANGE) 17 17 * 18 * @version $Revision: 1.17 0$ $Name: not supported by cvs2svn $19 * @date $Date: 2006-0 2-24 23:43:15$18 * @version $Revision: 1.171 $ $Name: not supported by cvs2svn $ 19 * @date $Date: 2006-05-03 23:16:16 $ 20 20 * 21 21 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 617 617 PS_ERRORTEXT_psStats_STATS_SAMPLE_MEDIAN_SORT_PROBLEM); 618 618 psTrace(__func__, 4, "---- %s(false) end ----\n", __func__); 619 psFree(unsortedVector); 619 620 return(false); 620 621 } -
trunk/psLib/src/mathtypes/psVector.c
r7046 r7055 9 9 * @author Robert DeSonia, MHPCC 10 10 * 11 * @version $Revision: 1.7 1$ $Name: not supported by cvs2svn $12 * @date $Date: 2006-05-03 00:27:51$11 * @version $Revision: 1.72 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2006-05-03 23:16:16 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 389 389 long N = outVector->n; // Number of elements 390 390 if (N < 2) { 391 psError(PS_ERR_BAD_PARAMETER_VALUE, true,392 "Error in psVectorSort: Vector has less than 2 data entries!\n");393 psFree(outVector);391 // psError(PS_ERR_BAD_PARAMETER_VALUE, true, 392 // "Error in psVectorSort: Vector has less than 2 data entries!\n"); 393 // psFree(outVector); 394 394 // psFree(outVector); 395 395 // outVector = NULL; 396 return NULL;396 return outVector; 397 397 } 398 398 long l = N >> 1;
Note:
See TracChangeset
for help on using the changeset viewer.
