Ignore:
Timestamp:
Aug 2, 2008, 6:56:03 PM (12 years ago)
Author:
Sam Hocevar
Message:
  • edd.c: output E_fast as well.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpipi/trunk/examples/edd.c

    r2644 r2647  
    3838    double sigma = 1.2, precision = 0.001, step = 2.;
    3939    double best = 1., fx = -1., fy = -1., bfx = 0., bfy = 0.;
    40     double e, e0;
     40    double e, e0, e1;
    4141    pipi_image_t *img, *gauss, *dither, *tmp;
    4242    int dx, dy;
     
    6060    tmp = pipi_gaussian_blur(dither, sigma);
    6161    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);
    6267    pipi_free(tmp);
    6368
     
    8691    }
    8792
    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);
    8994
    9095    pipi_free(dither);
Note: See TracChangeset for help on using the changeset viewer.