IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 6, 2004, 12:29:11 PM (22 years ago)
Author:
desonia
Message:

added a check for the position vector.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/image/tst_psImageExtraction.c

    r1404 r1405  
    66*  @author Robert DeSonia, MHPCC
    77*
    8 *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
    9 *  @date $Date: 2004-08-06 21:50:14 $
     8*  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
     9*  @date $Date: 2004-08-06 22:29:11 $
    1010*
    1111*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    9393        if (DIRECTION == PS_CUT_X_POS || DIRECTION == PS_CUT_X_NEG) { \
    9494            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); \
    9697                return TESTNUM*4+4; \
    9798            } \
    9899        } else { \
    99100            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); \
    101103                return TESTNUM*4+4; \
    102104            } \
     
    119121    PSIMAGESLICE_TEST1( 1, n, PS_CUT_X_POS, 1, 0, n / 2, 8 );
    120122    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 );
    122124    PSIMAGESLICE_TEST1( 1, n, PS_CUT_Y_NEG, n, 0, n - 1 - i, 11 );
    123125
Note: See TracChangeset for help on using the changeset viewer.