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

Location:
trunk/psLib/test/imageops
Files:
2 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);
  • trunk/psLib/test/imageops/tap_psImageShiftKernel.c

    r12094 r12513  
    1010    plan_tests(34);
    1111
    12     diag("psImageShiftKernel() tests");
     12//    diag("psImageShiftKernel() tests");
    1313
    1414    // tests using BILINEAR interpolation
     
    1717        psMemId id = psMemGetId();
    1818
    19         diag("shift a delta function by an integer offset");
     19//        diag("shift a delta function by an integer offset");
    2020
    2121        // generate simple image (delta function)
     
    5050        psMemId id = psMemGetId();
    5151
    52         diag("shift a delta function by an fractional pixel offset");
     52//        diag("shift a delta function by an fractional pixel offset");
    5353
    5454        // generate simple image (delta function)
     
    6565        // fractional shifts introduce smoothing,
    6666        psImage *shift = psImageShiftKernel (NULL, image, 0.2, 0.4, PS_INTERPOLATE_BICUBE);
    67         diag("these require tolerance of 4 epsilon (why?)");
     67//        diag("these require tolerance of 4 epsilon (why?)");
    6868        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]);
    6969        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]);
     
    8888        psMemId id = psMemGetId();
    8989
    90         diag("shift a gaussian and measure centroid");
     90//        diag("shift a gaussian and measure centroid");
    9191
    9292        // generate simple image (gauss function)
     
    117117        yo /= no;
    118118
    119         diag ("these require a tolerance of 100 epsilon");
     119//        diag ("these require a tolerance of 100 epsilon");
    120120        ok_float_tol (xo, 16.0, 100*FLT_EPSILON, "x-centroid should be %f : %f", 16.0, xo);
    121121        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);
     
    161161        // fractional shifts introduce smoothing,
    162162        psImage *shift = psImageShiftKernel (NULL, image, 0.2, 0.4, PS_INTERPOLATE_BICUBE);
    163         diag ("please check these values: this kernel is very steep and ringy.  what is the right BICUBE kernel?");
     163//        diag ("please check these values: this kernel is very steep and ringy.  what is the right BICUBE kernel?");
    164164        ok_float_tol (shift->data.F32[10][10], -1.444445, 4*FLT_EPSILON, "point 10,10 should be %f : %f", -1.444445, shift->data.F32[10][10]);
    165165        ok_float_tol (shift->data.F32[10][11], -0.277778, 4*FLT_EPSILON, "point 10,11 should be %f : %f", -0.277778, shift->data.F32[10][11]);
     
    184184        psMemId id = psMemGetId();
    185185
    186         diag("shift a gaussian and measure centroid");
     186//        diag("shift a gaussian and measure centroid");
    187187
    188188        // generate simple image (gauss function)
     
    215215        yo /= no;
    216216
    217         diag ("these require a tolerance of 100 epsilon");
     217//        diag ("these require a tolerance of 100 epsilon");
    218218        ok_float_tol (xo, 16.0, 100*FLT_EPSILON, "x-centroid should be %f : %f", 16.0, xo);
    219219        ok_float_tol (xo, 16.0, 100*FLT_EPSILON, "y-centroid should be %f : %f", 16.0, yo);
     
    235235        yo /= no;
    236236
    237         diag ("these require a tolerance of 100 epsilon");
     237//        diag ("these require a tolerance of 100 epsilon");
    238238        ok_float_tol (xo, 16.2, 100*FLT_EPSILON, "x-centroid should be %f : %f", 16.2, xo);
    239239        ok_float_tol (yo, 15.8, 100*FLT_EPSILON, "y-centroid should be %f : %f", 15.8, yo);
     
    281281        psMemId id = psMemGetId();
    282282
    283         diag("shift a gaussian and measure centroid");
     283//        diag("shift a gaussian and measure centroid");
    284284
    285285        // generate simple image (gauss function)
     
    312312        yo /= no;
    313313
    314         diag ("these require a tolerance of 100 epsilon");
     314//        diag ("these require a tolerance of 100 epsilon");
    315315        ok_float_tol (xo, 16.0, 100*FLT_EPSILON, "x-centroid should be %f : %f", 16.0, xo);
    316316        ok_float_tol (xo, 16.0, 100*FLT_EPSILON, "y-centroid should be %f : %f", 16.0, yo);
     
    332332        yo /= no;
    333333
    334         diag ("these require a tolerance of 100 epsilon");
     334//        diag ("these require a tolerance of 100 epsilon");
    335335        ok_float_tol (xo, 16.2, 100*FLT_EPSILON, "x-centroid should be %f : %f", 16.2, xo);
    336336        ok_float_tol (yo, 15.8, 100*FLT_EPSILON, "y-centroid should be %f : %f", 15.8, yo);
Note: See TracChangeset for help on using the changeset viewer.