From: Lubomir Bourdev (lbourdev_at_[hidden])
Date: 2006-10-20 19:36:46
I just posted the GIL code sample files and regression tests.
You can get them from http://opensource.adobe.com/gil/download.html
The following example files are included:
Scales an image using bilinear or nearest-neighbor resampling
Performs an arbitrary affine transformation on the image
Convolves the image with a Gaussian kernel
Creates a synthetic image defining the Mandelbrot set
Illustrates how to create a custom pixel reference and iterator.
Creates a GIL image view over user-supplied data without the need to
cast to GIL pixel type
Horizontal gradient, from the tutorial
Algorithm to compute the histogram of an image
Illustrates how to create a custom pixel model - a pixel whose
channel size is not divisible by bytes
Example of using images whose type is instantiated at run time
You should also resync to the latest GIL. The change:
When you assign a channel to a grayscale pixel you must qualify it with
the channel type.
For example, the following code will no longer compile:
gray8_pixel_t p(5); // error
img = 5; // error
You must now do:
img = bits8(5);
This affects the x_gradient code in the tutorial/presentation. We
updated the tutorial.
I am away this weekend. I may not have email access until Monday.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk