(none) imager-devel
/ help / lists / applications / search /
 

0.38pre7 Released

From: Arnar Mar Hrafnkelsson (
00545@xyz.molar.is)
Date: Sun 11 Mar 2001 - 23:20:18 UTC

  • Next message: Arnar Mar Hrafnkelsson: "Win 32 support!"

    0.38pre7 is on the devel page - it has some of the iolayer test crud
    removed and but has a new filter thingy to make gradients

    Examples on http://www.eecs.umich.edu/~addi/perl/Imager/gradient/

    filters.c now has pod documentation for all functions:

    http://www.eecs.umich.edu/~addi/perl/Imager/devel/docs/filters-c.html
    (also the watermark function had a bug that should be fixed).

    Lot of the functions in filters.c could be removed or simplified by
    introducing a new function that simply took a remapping array as a
    parameter.

    void
    i_pix_remap(i_img *im, unsigned char table[256]) {

            ...

      for( x & y over all pixels ) {
        i_gpix(x,y,&val);
        for (ch over all channels )
          val.channel[ch] = table[ val.channel[ch] ];

      }
    }

    Or also one which did one table per channel.

    i_pix_remap(i_img *im, unsigned char *table[256]) {

            ...

      for( x & y over all pixels ) {
        i_gpix(x,y,&val);
        for (ch over all channels )
          val.channel[ch] = table[ch][ val.channel[ch] ];

      }
    }

    Things like the contrast, hardinvert, postlevels can all be done with this
    method. But it would also allow for arbitrary userspecified pixel
    transformations.

    It also seems that quite a few of the more powerful filters do not have an
    OO interface yet. (like applyimage and bumpmap).

    -- Arnar



  •