Changeset 6294 for trunk/psLib/test/imageops/tst_psImagePixelExtract.c
- Timestamp:
- Feb 1, 2006, 6:41:45 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/imageops/tst_psImagePixelExtract.c
r5625 r6294 6 6 * @author Robert DeSonia, MHPCC 7 7 * 8 * @version $Revision: 1. 3$ $Name: not supported by cvs2svn $9 * @date $Date: 200 5-11-30 02:00:37$8 * @version $Revision: 1.4 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2006-02-02 04:41:45 $ 10 10 * 11 11 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 64 64 psVector* out = NULL; 65 65 psImage* image; 66 ps Vector* positions = psVectorAlloc( r, PS_TYPE_U32);66 psPixels* positions = psPixelsAlloc( r ); 67 67 psImage* mask = psImageAlloc( c, r, PS_TYPE_MASK ); 68 68 psStats* stat = psStatsAlloc( PS_STAT_SAMPLE_MEDIAN ); … … 102 102 if (out->n != TRUTH_SIZE) { \ 103 103 psError(PS_ERR_UNKNOWN,true,"Number of results is wrong (%d, not %d)", \ 104 out->n, n); \104 out->n,TRUTH_SIZE); \ 105 105 return TESTNUM*4+1; \ 106 106 } \ … … 108 108 if (positions->n != TRUTH_SIZE) { \ 109 109 psError(PS_ERR_UNKNOWN,true,"Number of results for positions vector is wrong (%d, not %d)", \ 110 out->n,n); \110 positions->n,TRUTH_SIZE); \ 111 111 return TESTNUM*4+2; \ 112 112 } \ … … 119 119 } \ 120 120 if (DIRECTION == PS_CUT_X_POS || DIRECTION == PS_CUT_X_NEG) { \ 121 if (positions->data .U32[i]!= c/10+TRUTHPIX_X) { \121 if (positions->data[i].x != c/10+TRUTHPIX_X) { \ 122 122 psError(PS_ERR_UNKNOWN,true,"Improper positions (%d vs %d) result @ %d.", \ 123 positions->data .U32[i],c/10+TRUTHPIX_X,i); \123 positions->data[i].x,c/10+TRUTHPIX_X,i); \ 124 124 return TESTNUM*4+4; \ 125 125 } \ 126 126 } else { \ 127 if (positions->data .U32[i]!= r/10+TRUTHPIX_Y) { \127 if (positions->data[i].y != r/10+TRUTHPIX_Y) { \ 128 128 psError(PS_ERR_UNKNOWN,true,"Improper positions (%d vs %d) result @ %d.", \ 129 positions->data .U32[i],r/10+TRUTHPIX_Y,i); \129 positions->data[i].y,r/10+TRUTHPIX_Y,i); \ 130 130 return TESTNUM*4+4; \ 131 131 } \
Note:
See TracChangeset
for help on using the changeset viewer.
