Changeset 17331 for trunk/psLib/test/imageops/tap_psImageConvolve2.c
- Timestamp:
- Apr 4, 2008, 4:56:18 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/imageops/tap_psImageConvolve2.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/imageops/tap_psImageConvolve2.c
r17330 r17331 8 8 #define KERNEL_SIZE 3 9 9 #define TOL 1.0e-6 10 #define MASK_INITIAL 0x0 f11 #define MASK_FINAL 0x f010 #define MASK_INITIAL 0x08 11 #define MASK_FINAL 0x80 12 12 13 13 … … 98 98 int main(int argc, char *argv[]) 99 99 { 100 plan_tests( 15);100 plan_tests(20); 101 101 102 102 diag("psImageConvolve tests"); … … 171 171 } 172 172 173 { 174 // In-place FFT mask convolution: 5 tests 175 psMemId id = psMemGetId(); 176 177 psImage *mask = generateMask(); 178 179 bool result = psImageConvolveMaskFFT(mask, mask, MASK_INITIAL, MASK_FINAL, -KERNEL_SIZE, KERNEL_SIZE, 180 -KERNEL_SIZE, KERNEL_SIZE, 0.5); 181 ok(result, "convolution result"); 182 skip_start(!result, 3, "convolution failed"); 183 ok(mask->type.type == PS_TYPE_MASK, "output type"); 184 ok(mask->numCols == IMAGE_SIZE && mask->numRows == IMAGE_SIZE, "output size %dx%d", 185 mask->numCols, mask->numRows); 186 ok(checkConvolvedMask(mask), "convolved mask correct"); 187 skip_end(); 188 189 psFree(mask); 190 191 ok(!psMemCheckLeaks(id, NULL, NULL, false), "no memory leaks"); 192 } 193 173 194 174 195 return exit_status();
Note:
See TracChangeset
for help on using the changeset viewer.
