Changeset 2647
 Timestamp:
 Aug 2, 2008, 6:56:03 PM (14 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

libpipi/trunk/examples/edd.c
r2644 r2647 38 38 double sigma = 1.2, precision = 0.001, step = 2.; 39 39 double best = 1., fx = 1., fy = 1., bfx = 0., bfy = 0.; 40 double e, e0 ;40 double e, e0, e1; 41 41 pipi_image_t *img, *gauss, *dither, *tmp; 42 42 int dx, dy; … … 60 60 tmp = pipi_gaussian_blur(dither, sigma); 61 61 e0 = pipi_measure_rmsd(gauss, tmp); 62 pipi_free(tmp); 63 64 /* Compute the fast error */ 65 tmp = pipi_gaussian_blur_ext(dither, sigma, sigma, 0.16, 0.26); 66 e1 = pipi_measure_rmsd(gauss, tmp); 62 67 pipi_free(tmp); 63 68 … … 86 91 } 87 92 88 printf("E: %g E_ min: %g dx: %g dy: %g\n", e0, best, fx, fy);93 printf("E: %g E_fast: %g E_min: %g dx: %g dy: %g\n", e0, e1, best, fx, fy); 89 94 90 95 pipi_free(dither);
Note: See TracChangeset
for help on using the changeset viewer.