IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 19, 2007, 5:57:25 PM (19 years ago)
Author:
jhoblitt
Message:

disable unnecessary diag() calls

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/imageops/tap_psImageShift.c

    r9875 r12513  
    1010    plan_tests(39);
    1111
    12     diag("psImageShift() tests");
     12//    diag("psImageShift() tests");
    1313
    1414    // tests using BILINEAR interpolation
     
    1616        psMemId id = psMemGetId();
    1717
    18         diag("shift a delta function by an integer offset");
     18//        diag("shift a delta function by an integer offset");
    1919
    2020        // generate simple image (delta function)
     
    4848        psMemId id = psMemGetId();
    4949
    50         diag("shift a delta function by an fractional pixel offset");
     50//        diag("shift a delta function by an fractional pixel offset");
    5151
    5252        // generate simple image (delta function)
     
    6363        // fractional shifts introduce smoothing,
    6464        psImage *shift = psImageShift (NULL, image, 0.2, 0.4, 0.0, PS_INTERPOLATE_BILINEAR);
    65         diag("these require tolerance of 4 epsilon (why?)");
     65//        diag("these require tolerance of 4 epsilon (why?)");
    6666        ok_float_tol (shift->data.F32[10][10], 0.8*0.6, 4*FLT_EPSILON, "point 10,10 should be %f : %f", 0.8*0.6, shift->data.F32[10][10]);
    6767        ok_float_tol (shift->data.F32[10][11], 0.2*0.6, 4*FLT_EPSILON, "point 10,11 should be %f : %f", 0.2*0.6, shift->data.F32[10][11]);
     
    8585        psMemId id = psMemGetId();
    8686
    87         diag("shift a gaussian and measure centroid");
     87//        diag("shift a gaussian and measure centroid");
    8888
    8989        // generate simple image (gauss function)
     
    116116        yo /= no;
    117117
    118         diag ("these require a tolerance of 100 epsilon");
     118//        diag ("these require a tolerance of 100 epsilon");
    119119        ok_float_tol (xo, 16.0, 100*FLT_EPSILON, "x-centroid should be %f : %f", 16.0, xo);
    120120        ok_float_tol (xo, 16.0, 100*FLT_EPSILON, "y-centroid should be %f : %f", 16.0, yo);
     
    136136        yo /= no;
    137137
    138         diag ("these require a tolerance of 100 epsilon");
     138//        diag ("these require a tolerance of 100 epsilon");
    139139        ok_float_tol (xo, 17.2, 100*FLT_EPSILON, "x-centroid should be %f : %f", 17.2, xo);
    140140        ok_float_tol (yo, 14.8, 100*FLT_EPSILON, "y-centroid should be %f : %f", 14.8, yo);
Note: See TracChangeset for help on using the changeset viewer.