IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 1405


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

added a check for the position vector.

Location:
trunk/psLib/test/image
Files:
2 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
  • trunk/psLib/test/image/verified/tst_psImageExtraction.stderr

    r1365 r1405  
    55\**********************************************************************************/
    66
    7  <DATE> <TIME> |<HOST>|I| testImageSlice|Following should be an error.
    8  <DATE> <TIME> |<HOST>|E|   psImageSlice|Input image can not be NULL.
    9  <DATE> <TIME> |<HOST>|I| testImageSlice|Following should be an error.
    10  <DATE> <TIME> |<HOST>|E|   psImageSlice|The stat options didn't specify a single supported statistic type.
    11  <DATE> <TIME> |<HOST>|I| testImageSlice|Following should be an error.
    12  <DATE> <TIME> |<HOST>|E|   psImageSlice|Invalid direction flag (5)
    13  <DATE> <TIME> |<HOST>|I| testImageSlice|Following should be an error.
    14  <DATE> <TIME> |<HOST>|E|   psImageSlice|The specified region contains no data (0x0)
    15  <DATE> <TIME> |<HOST>|I| testImageSlice|Following should be an error.
    16  <DATE> <TIME> |<HOST>|E|   psImageSlice|The specified image region (2001,100 to 2001,100) is outside of image area (0,0 to 1999,999).
    17  <DATE> <TIME> |<HOST>|I| testImageSlice|Following should be an error.
    18  <DATE> <TIME> |<HOST>|E|   psImageSlice|The specified image region (200,1001 to 200,1001) is outside of image area (0,0 to 1999,999).
    19  <DATE> <TIME> |<HOST>|I| testImageSlice|Following should be an error.
    20  <DATE> <TIME> |<HOST>|E|   psImageSlice|The specified image region (200,100 to 2199,100) is outside of image area (0,0 to 1999,999).
    21  <DATE> <TIME> |<HOST>|I| testImageSlice|Following should be an error.
    22  <DATE> <TIME> |<HOST>|E|   psImageSlice|The specified image region (200,100 to 200,1099) is outside of image area (0,0 to 1999,999).
    23  <DATE> <TIME> |<HOST>|I| testImageSlice|Following should be an error.
    24  <DATE> <TIME> |<HOST>|E|   psImageSlice|The stat options didn't specify a single supported statistic type.
     7<DATE><TIME>|<HOST>|I| testImageSlice|Following should be an error.
     8<DATE><TIME>|<HOST>|E|   psImageSlice|Input image can not be NULL.
     9<DATE><TIME>|<HOST>|I| testImageSlice|Following should be an error.
     10<DATE><TIME>|<HOST>|E|   psImageSlice|The stat options didn't specify a single supported statistic type.
     11<DATE><TIME>|<HOST>|I| testImageSlice|Following should be an error.
     12<DATE><TIME>|<HOST>|E|   psImageSlice|Invalid direction flag (5)
     13<DATE><TIME>|<HOST>|I| testImageSlice|Following should be an error.
     14<DATE><TIME>|<HOST>|E|   psImageSlice|The specified region contains no data (0x0)
     15<DATE><TIME>|<HOST>|I| testImageSlice|Following should be an error.
     16<DATE><TIME>|<HOST>|E|   psImageSlice|The specified image region (2001,100 to 2001,100) is outside of image area (0,0 to 1999,999).
     17<DATE><TIME>|<HOST>|I| testImageSlice|Following should be an error.
     18<DATE><TIME>|<HOST>|E|   psImageSlice|The specified image region (200,1001 to 200,1001) is outside of image area (0,0 to 1999,999).
     19<DATE><TIME>|<HOST>|I| testImageSlice|Following should be an error.
     20<DATE><TIME>|<HOST>|E|   psImageSlice|The specified image region (200,100 to 2199,100) is outside of image area (0,0 to 1999,999).
     21<DATE><TIME>|<HOST>|I| testImageSlice|Following should be an error.
     22<DATE><TIME>|<HOST>|E|   psImageSlice|The specified image region (200,100 to 200,1099) is outside of image area (0,0 to 1999,999).
     23<DATE><TIME>|<HOST>|I| testImageSlice|Following should be an error.
     24<DATE><TIME>|<HOST>|E|   psImageSlice|The stat options didn't specify a single supported statistic type.
    2525
    2626---> TESTPOINT PASSED (psImage{psImageSlice} | tst_psImageExtraction.c)
Note: See TracChangeset for help on using the changeset viewer.