IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 29683


Ignore:
Timestamp:
Nov 5, 2010, 10:52:41 AM (16 years ago)
Author:
eugene
Message:

report the interpolation mode name in the test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20101103/psLib/test/imageops/tap_psImageInterpolate3.c

    r29682 r29683  
    3939           psElemType type,             // Type for image
    4040           int num,                     // Number of samples over image
    41            psImageInterpolateMode mode, // Interpolation mode
     41           char *modeName, // Interpolation mode
    4242           int xKernel, int yKernel,    // Size of interpolation kernel
    4343           float tol,                    // Tolerance
     
    4949    psImage *image = NULL;
    5050
     51    psImageInterpolateMode mode = psImageInterpolateModeFromString(modeName);
    5152    // psImageMaskType maskVal;
    5253
     
    8586        psFree (interp);
    8687    }
     88
     89    fprintf (stderr, "results for interpolation mode %s\n", modeName);
    8790
    8891    // measure the interpolate variance value at the specified locations
     
    137140    plan_tests(6);
    138141
    139     check(16, 16, PS_TYPE_F32, NTESTS, PS_INTERPOLATE_BILINEAR, 2, 2, 1.0e-6, rnd); // 66 tests
    140     // check(16, 16, PS_TYPE_F64, 32, PS_INTERPOLATE_BILINEAR, 2, 2, 1.0e-6); // 66 tests
     142    check(16, 16, PS_TYPE_F32, NTESTS, "BILINEAR", 2, 2, 1.0e-6, rnd); // 66 tests
     143    // check(16, 16, PS_TYPE_F64, NTESTS, "BILINEAR", 2, 2, 1.0e-6); // 66 tests
    141144
    142     check(16, 16, PS_TYPE_F32, NTESTS, PS_INTERPOLATE_BIQUADRATIC, 3, 3, 1.0e-6, rnd); // 66 tests
    143     // check(16, 16, PS_TYPE_F64, 32, PS_INTERPOLATE_BIQUADRATIC, 3, 3, 1.0e-6); // 66 tests
     145    check(16, 16, PS_TYPE_F32, NTESTS, "BIQUADRATIC", 3, 3, 1.0e-6, rnd); // 66 tests
     146    // check(16, 16, PS_TYPE_F64, NTESTS, "BIQUADRATIC", 3, 3, 1.0e-6); // 66 tests
    144147
    145     check(16, 16, PS_TYPE_F32, NTESTS, PS_INTERPOLATE_GAUSS, 3, 3, 1.0e-3, rnd); // 66 tests
    146     // check(16, 16, PS_TYPE_F64, 32, PS_INTERPOLATE_GAUSS, 3, 3, 1.0e-3); // 66 tests
     148    check(16, 16, PS_TYPE_F32, NTESTS, "GAUSS", 3, 3, 1.0e-3, rnd); // 66 tests
     149    // check(16, 16, PS_TYPE_F64, NTESTS, "GAUSS", 3, 3, 1.0e-3); // 66 tests
    147150
    148     check(16, 16, PS_TYPE_F32, NTESTS, PS_INTERPOLATE_LANCZOS2, 4, 4, 1.0e-3, rnd); // 66 tests
    149     // check(16, 16, PS_TYPE_F64, 32, PS_INTERPOLATE_LANCZOS2, 4, 4, 1.0e-3); // 66 tests
     151    check(16, 16, PS_TYPE_F32, NTESTS, "LANCZOS2", 4, 4, 1.0e-3, rnd); // 66 tests
     152    // check(16, 16, PS_TYPE_F64, NTESTS, "LANCZOS2", 4, 4, 1.0e-3); // 66 tests
    150153
    151     check(32, 32, PS_TYPE_F32, NTESTS, PS_INTERPOLATE_LANCZOS3, 6, 6, 1.0e-3, rnd); // 66 tests
    152     // check(32, 32, PS_TYPE_F64, 32, PS_INTERPOLATE_LANCZOS3, 6, 6, 1.0e-3); // 66 tests
     154    check(32, 32, PS_TYPE_F32, NTESTS, "LANCZOS3", 6, 6, 1.0e-3, rnd); // 66 tests
     155    // check(32, 32, PS_TYPE_F64, NTESTS, "LANCZOS3", 6, 6, 1.0e-3); // 66 tests
    153156
    154     check(32, 32, PS_TYPE_F32, NTESTS, PS_INTERPOLATE_LANCZOS4, 8, 8, 1.0e-3, rnd); // 66 tests
    155     // check(32, 32, PS_TYPE_F64, 32, PS_INTERPOLATE_LANCZOS4, 8, 8, 1.0e-3); // 66 tests
     157    check(32, 32, PS_TYPE_F32, NTESTS, "LANCZOS4", 8, 8, 1.0e-3, rnd); // 66 tests
     158    // check(32, 32, PS_TYPE_F64, NTESTS, "LANCZOS4", 8, 8, 1.0e-3); // 66 tests
    156159
    157160    psFree (rnd);
Note: See TracChangeset for help on using the changeset viewer.