Changeset 29683
- Timestamp:
- Nov 5, 2010, 10:52:41 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20101103/psLib/test/imageops/tap_psImageInterpolate3.c
r29682 r29683 39 39 psElemType type, // Type for image 40 40 int num, // Number of samples over image 41 psImageInterpolateMode mode, // Interpolation mode41 char *modeName, // Interpolation mode 42 42 int xKernel, int yKernel, // Size of interpolation kernel 43 43 float tol, // Tolerance … … 49 49 psImage *image = NULL; 50 50 51 psImageInterpolateMode mode = psImageInterpolateModeFromString(modeName); 51 52 // psImageMaskType maskVal; 52 53 … … 85 86 psFree (interp); 86 87 } 88 89 fprintf (stderr, "results for interpolation mode %s\n", modeName); 87 90 88 91 // measure the interpolate variance value at the specified locations … … 137 140 plan_tests(6); 138 141 139 check(16, 16, PS_TYPE_F32, NTESTS, PS_INTERPOLATE_BILINEAR, 2, 2, 1.0e-6, rnd); // 66 tests140 // check(16, 16, PS_TYPE_F64, 32, PS_INTERPOLATE_BILINEAR, 2, 2, 1.0e-6); // 66 tests142 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 141 144 142 check(16, 16, PS_TYPE_F32, NTESTS, PS_INTERPOLATE_BIQUADRATIC, 3, 3, 1.0e-6, rnd); // 66 tests143 // check(16, 16, PS_TYPE_F64, 32, PS_INTERPOLATE_BIQUADRATIC, 3, 3, 1.0e-6); // 66 tests145 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 144 147 145 check(16, 16, PS_TYPE_F32, NTESTS, PS_INTERPOLATE_GAUSS, 3, 3, 1.0e-3, rnd); // 66 tests146 // check(16, 16, PS_TYPE_F64, 32, PS_INTERPOLATE_GAUSS, 3, 3, 1.0e-3); // 66 tests148 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 147 150 148 check(16, 16, PS_TYPE_F32, NTESTS, PS_INTERPOLATE_LANCZOS2, 4, 4, 1.0e-3, rnd); // 66 tests149 // check(16, 16, PS_TYPE_F64, 32, PS_INTERPOLATE_LANCZOS2, 4, 4, 1.0e-3); // 66 tests151 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 150 153 151 check(32, 32, PS_TYPE_F32, NTESTS, PS_INTERPOLATE_LANCZOS3, 6, 6, 1.0e-3, rnd); // 66 tests152 // check(32, 32, PS_TYPE_F64, 32, PS_INTERPOLATE_LANCZOS3, 6, 6, 1.0e-3); // 66 tests154 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 153 156 154 check(32, 32, PS_TYPE_F32, NTESTS, PS_INTERPOLATE_LANCZOS4, 8, 8, 1.0e-3, rnd); // 66 tests155 // check(32, 32, PS_TYPE_F64, 32, PS_INTERPOLATE_LANCZOS4, 8, 8, 1.0e-3); // 66 tests157 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 156 159 157 160 psFree (rnd);
Note:
See TracChangeset
for help on using the changeset viewer.
