Changeset 10548
- Timestamp:
- Dec 8, 2006, 1:37:31 AM (19 years ago)
- Location:
- trunk/psLib/src
- Files:
-
- 5 edited
-
imageops/psImageGeomManip.c (modified) (2 diffs)
-
imageops/psImagePixelExtract.c (modified) (4 diffs)
-
imageops/psImageStats.c (modified) (3 diffs)
-
imageops/psImageStats.h (modified) (2 diffs)
-
math/psMinimizePolyFit.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/imageops/psImageGeomManip.c
r9927 r10548 10 10 * @author Ross Harman, MHPCC 11 11 * 12 * @version $Revision: 1.3 2$ $Name: not supported by cvs2svn $13 * @date $Date: 2006-1 1-09 20:20:27$12 * @version $Revision: 1.33 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2006-12-08 11:37:31 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 134 134 vec->n = n; \ 135 135 maskVec->n = n; \ 136 myStats =psVectorStats(myStats, vec, NULL, maskVec, maskVal); \136 psVectorStats(myStats, vec, NULL, maskVec, maskVal); \ 137 137 outRowData[col] = (ps##TYPE)psStatsGetValue(myStats, statistic); \ 138 138 } \ -
trunk/psLib/src/imageops/psImagePixelExtract.c
r9730 r10548 8 8 * @author Robert DeSonia, MHPCC 9 9 * 10 * @version $Revision: 1.2 8$ $Name: not supported by cvs2svn $11 * @date $Date: 2006-1 0-24 22:52:55$10 * @version $Revision: 1.29 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2006-12-08 11:37:31 $ 12 12 * 13 13 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 436 436 } \ 437 437 } \ 438 myStats =psVectorStats(myStats,imgVec,NULL,maskVec,maskVal); \438 psVectorStats(myStats,imgVec,NULL,maskVec,maskVal); \ 439 439 *outData = psStatsGetValue(myStats, statistic); \ 440 440 if (outPosition != NULL) { \ … … 516 516 maskVec->data.U8 = (psPtr )(mask->data.U8[r] + col0 * sizeof(psMaskType)); 517 517 } 518 myStats =psVectorStats(myStats, imgVec, NULL, maskVec, maskVal);518 psVectorStats(myStats, imgVec, NULL, maskVec, maskVal); 519 519 *outData = psStatsGetValue(myStats, statistic); 520 520 if (outPosition != NULL) { … … 905 905 906 906 for (psS32 r = 0; r < numOut; r++) { 907 myStats =psVectorStats(myStats,buffer[r], NULL, bufferMask[r],maskVal);907 psVectorStats(myStats,buffer[r], NULL, bufferMask[r],maskVal); 908 908 outData[r] = psStatsGetValue(myStats, statistic); 909 909 } -
trunk/psLib/src/imageops/psImageStats.c
r9730 r10548 9 9 * @author GLG, MHPCC 10 10 * 11 * @version $Revision: 1.10 1$ $Name: not supported by cvs2svn $12 * @date $Date: 2006-1 0-24 22:52:55$11 * @version $Revision: 1.102 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2006-12-08 11:37:31 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 108 108 } 109 109 110 stats =psVectorStats(stats, junkData, NULL, junkMask, maskVal);110 psVectorStats(stats, junkData, NULL, junkMask, maskVal); 111 111 112 112 psFree(junkMask); … … 588 588 return -1; 589 589 }/* else if (col0 == col1 && row0 == row1) { 590 psError(PS_ERR_BAD_PARAMETER_VALUE, true,591 "Invalid psRegion specified. Region contains only 1 pixel.\n");592 return -1;593 }594 */590 psError(PS_ERR_BAD_PARAMETER_VALUE, true, 591 "Invalid psRegion specified. Region contains only 1 pixel.\n"); 592 return -1; 593 } 594 */ 595 595 x0 = col0; 596 596 x1 = col1; -
trunk/psLib/src/imageops/psImageStats.h
r6874 r10548 9 9 * @author GLG, MHPCC 10 10 * 11 * @version $Revision: 1.2 8$ $Name: not supported by cvs2svn $12 * @date $Date: 2006- 04-17 22:00:03$11 * @version $Revision: 1.29 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2006-12-08 11:37:31 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 21 21 #include "psImage.h" 22 22 #include "psStats.h" 23 #include "psHistogram.h" 23 24 #include "psPolynomial.h" 24 25 #include "psRegion.h" -
trunk/psLib/src/math/psMinimizePolyFit.c
r9730 r10548 10 10 * @author EAM, IfA 11 11 * 12 * @version $Revision: 1.2 4$ $Name: not supported by cvs2svn $13 * @date $Date: 2006-1 0-24 22:52:56$12 * @version $Revision: 1.25 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2006-12-08 11:37:31 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 855 855 } 856 856 857 stats = psVectorStats(stats, resid, NULL, mask, maskValue); 858 if (stats == NULL) { 857 if (!psVectorStats(stats, resid, NULL, mask, maskValue)) { 859 858 psError(PS_ERR_UNKNOWN, false, "Could not compute statistics on the resid vector. Returning NULL.\n"); 860 859 psFree(resid) … … 1304 1303 } 1305 1304 1306 stats = psVectorStats(stats, resid, NULL, mask, maskValue); 1307 if (stats == NULL) { 1305 if (!psVectorStats(stats, resid, NULL, mask, maskValue)) { 1308 1306 psError(PS_ERR_UNKNOWN, false, "Could not compute statistics on the resid vector. Returning NULL.\n"); 1309 1307 psFree(resid) … … 1835 1833 } 1836 1834 1837 stats = psVectorStats(stats, resid, NULL, mask, maskValue); 1838 if (stats == NULL) { 1835 if (!psVectorStats(stats, resid, NULL, mask, maskValue)) { 1839 1836 psError(PS_ERR_UNKNOWN, false, "Could not compute statistics on the resid vector. Returning NULL.\n"); 1840 1837 psFree(resid) … … 2412 2409 } 2413 2410 2414 stats = psVectorStats (stats, resid, NULL, mask, maskValue); 2415 if (stats == NULL) { 2411 if (!psVectorStats (stats, resid, NULL, mask, maskValue)) { 2416 2412 psError(PS_ERR_UNKNOWN, false, "Could not compute statistics on the resid vector. Returning NULL.\n"); 2417 2413 psFree(resid)
Note:
See TracChangeset
for help on using the changeset viewer.
