Changeset 1405 for trunk/psLib/test/image/tst_psImageExtraction.c
- Timestamp:
- Aug 6, 2004, 12:29:11 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/image/tst_psImageExtraction.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/image/tst_psImageExtraction.c
r1404 r1405 6 6 * @author Robert DeSonia, MHPCC 7 7 * 8 * @version $Revision: 1. 3$ $Name: not supported by cvs2svn $9 * @date $Date: 2004-08-06 2 1:50:14$8 * @version $Revision: 1.4 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2004-08-06 22:29:11 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 93 93 if (DIRECTION == PS_CUT_X_POS || DIRECTION == PS_CUT_X_NEG) { \ 94 94 if (positions->data.U32[i] != c/10+TRUTHPIX_X) { \ 95 psError(__func__,"Improper postions result @ %d.",i); \ 95 psError(__func__,"Improper positions (%d vs %d) result @ %d.", \ 96 positions->data.U32[i],c/10+TRUTHPIX_X,i); \ 96 97 return TESTNUM*4+4; \ 97 98 } \ 98 99 } else { \ 99 100 if (positions->data.U32[i] != r/10+TRUTHPIX_Y) { \ 100 psError(__func__,"Improper postions result @ %d.",i); \ 101 psError(__func__,"Improper positions (%d vs %d) result @ %d.", \ 102 positions->data.U32[i],r/10+TRUTHPIX_Y,i); \ 101 103 return TESTNUM*4+4; \ 102 104 } \ … … 119 121 PSIMAGESLICE_TEST1( 1, n, PS_CUT_X_POS, 1, 0, n / 2, 8 ); 120 122 PSIMAGESLICE_TEST1( 1, n, PS_CUT_X_NEG, 1, 0, n / 2, 9 ); 121 PSIMAGESLICE_TEST1( 1, n, PS_CUT_Y_POS, n, 0, n - 1 -i, 10 );123 PSIMAGESLICE_TEST1( 1, n, PS_CUT_Y_POS, n, 0, i, 10 ); 122 124 PSIMAGESLICE_TEST1( 1, n, PS_CUT_Y_NEG, n, 0, n - 1 - i, 11 ); 123 125
Note:
See TracChangeset
for help on using the changeset viewer.
