IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 3986


Ignore:
Timestamp:
May 19, 2005, 11:37:02 AM (21 years ago)
Author:
desonia
Message:

tweaked to avoid a signed zero.

Location:
trunk/psLib/test/image
Files:
2 edited

Legend:

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

    r3973 r3986  
    66 *  @author Robert DeSonia, MHPCC
    77 *
    8  *  @version $Revision: 1.1 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2005-05-19 02:49:40 $
     8 *  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2005-05-19 21:37:02 $
    1010 *
    1111 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    453453    retVal = psImageClipComplexRegion(img,
    454454                                      1.0+I*1.0,
    455                                       -2.0*(double)FLT_MAX*I,
     455                                      FLT_EPSILON-2.0*(double)FLT_MAX*I,
    456456                                      5.0+5.0*I,
    457457                                      0.0);
     
    464464    retVal = psImageClipComplexRegion(img,
    465465                                      1.0+I*1.0,
    466                                       2.0*(double)FLT_MAX*I,
     466                                      FLT_EPSILON+2.0*(double)FLT_MAX*I,
    467467                                      5.0+5.0*I,
    468468                                      0.0);
     
    499499                                      0.0,
    500500                                      5.0+5.0*I,
    501                                       -2.0*(double)FLT_MAX*I);
     501                                      FLT_EPSILON-2.0*(double)FLT_MAX*I);
    502502    if (retVal != 0) {
    503503        psError(PS_ERR_UNKNOWN, true,"Expected zero return for vmax not in datatype range.");
     
    510510                                      0.0,
    511511                                      5.0+5.0*I,
    512                                       2.0*(double)FLT_MAX*I);
     512                                      FLT_EPSILON+2.0*(double)FLT_MAX*I);
    513513    if (retVal != 0) {
    514514        psError(PS_ERR_UNKNOWN, true,"Expected zero return for vmax not in datatype range.");
  • trunk/psLib/test/image/verified/tst_psImagePixelManip.stderr

    r3976 r3986  
    8686    Following should be an error:
    8787<DATE><TIME>|<HOST>|E|psImageClipComplexRegion (FILE:LINENO)
    88     Specified vmin value, 0-6.80565e+38i, is not the the range of input psImage's valid pixel values (psC32), i.e. [-3.40282e+38:3.40282e+38].
     88    Specified vmin value, 1.19209e-07-6.80565e+38i, is not the the range of input psImage's valid pixel values (psC32), i.e. [-3.40282e+38:3.40282e+38].
    8989<DATE><TIME>|<HOST>|I|testImageClipComplexRegion
    9090    Following should be an error:
    9191<DATE><TIME>|<HOST>|E|psImageClipComplexRegion (FILE:LINENO)
    92     Specified vmin value, 0+6.80565e+38i, is not the the range of input psImage's valid pixel values (psC32), i.e. [-3.40282e+38:3.40282e+38].
     92    Specified vmin value, 1.19209e-07+6.80565e+38i, is not the the range of input psImage's valid pixel values (psC32), i.e. [-3.40282e+38:3.40282e+38].
    9393<DATE><TIME>|<HOST>|I|testImageClipComplexRegion
    9494    Following should be an error:
     
    102102    Following should be an error:
    103103<DATE><TIME>|<HOST>|E|psImageClipComplexRegion (FILE:LINENO)
    104     Specified vmax value, 0-6.80565e+38i, is not the the range of input psImage's valid pixel values (psC32), i.e. [-3.40282e+38:3.40282e+38].
     104    Specified vmax value, 1.19209e-07-6.80565e+38i, is not the the range of input psImage's valid pixel values (psC32), i.e. [-3.40282e+38:3.40282e+38].
    105105<DATE><TIME>|<HOST>|I|testImageClipComplexRegion
    106106    Following should be an error:
    107107<DATE><TIME>|<HOST>|E|psImageClipComplexRegion (FILE:LINENO)
    108     Specified vmax value, 0+6.80565e+38i, is not the the range of input psImage's valid pixel values (psC32), i.e. [-3.40282e+38:3.40282e+38].
     108    Specified vmax value, 1.19209e-07+6.80565e+38i, is not the the range of input psImage's valid pixel values (psC32), i.e. [-3.40282e+38:3.40282e+38].
    109109<DATE><TIME>|<HOST>|I|testImageClipComplexRegion
    110110    Following should be an error (invalid type)
Note: See TracChangeset for help on using the changeset viewer.