1 Copyright 2008 Lubomir Bourdev and Hailin Jin
3 Distributed under the Boost Software License, Version 1.0.
4 (See accompanying file LICENSE_1_0.txt or copy at
5 http://www.boost.org/LICENSE_1_0.txt)
7 This directory contains GIL sample code.
9 We provide a Makefile that compiles all examples. You will need to change it to specify the correct path to boost, gil, and libjpeg. Some of the examples include the GIL numeric extension, which you can get from:
10 http://opensource.adobe.com/gil/download.html
12 The makefile generates a separate executable for each test file. Each executable generates its output as "out-<example_name>.jpg". For example, the resize.cpp example generates the image out-resize.jpg
14 The following examples are included:
17 Scales an image using bilinear or nearest-neighbor resampling
20 Performs an arbitrary affine transformation on the image
23 Convolves the image with a Gaussian kernel
26 Creates a synthetic image defining the Mandelbrot set
28 5. interleaved_ptr.cpp
29 Illustrates how to create a custom pixel reference and iterator.
30 Creates a GIL image view over user-supplied data without the need to cast to GIL pixel type
33 Horizontal gradient, from the tutorial
36 Algorithm to compute the histogram of an image
39 Illustrates how to create a custom pixel model - a pixel whose channel size is not divisible by bytes
42 Example of using images whose type is instantiated at run time