Ignore:
Timestamp:
Aug 23, 2008, 3:07:42 PM (12 years ago)
Author:
Sam Hocevar
Message:
  • Get rid of the specific error diffusion functions, since our stock kernels work perfectly well.
File:
1 edited

Legend:

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

    r2715 r2759  
    3939    double best = 1., fx = -1., fy = -1., bfx = 0., bfy = 0.;
    4040    double e, e0, e1;
    41     pipi_image_t *img, *gauss, *dither, *tmp;
     41    pipi_image_t *img, *kernel, *gauss, *dither, *tmp;
    4242    int dx, dy;
    4343
     
    5353    pipi_getpixels(img, PIPI_PIXELS_Y_F);
    5454    gauss = pipi_gaussian_blur(img, sigma);
    55     dither = pipi_dither_floydsteinberg(img, PIPI_SCAN_RASTER);
     55    kernel = pipi_load("ediff:fs");
     56    dither = pipi_dither_ediff(img, kernel, PIPI_SCAN_RASTER);
     57    pipi_free(kernel);
    5658    pipi_free(img);
    5759
Note: See TracChangeset for help on using the changeset viewer.