]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/gil/example/README.txt
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / gil / example / README.txt
1 Copyright 2008 Lubomir Bourdev and Hailin Jin
2
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)
6
7 This directory contains GIL sample code.
8
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
11
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
13
14 The following examples are included:
15
16 1. resize.cpp
17 Scales an image using bilinear or nearest-neighbor resampling
18
19 2. affine.cpp
20 Performs an arbitrary affine transformation on the image
21
22 3. convolution.cpp
23 Convolves the image with a Gaussian kernel
24
25 4. mandelbrot.cpp
26 Creates a synthetic image defining the Mandelbrot set
27
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
31
32 6. x_gradient.cpp
33 Horizontal gradient, from the tutorial
34
35 7. histogram.cpp
36 Algorithm to compute the histogram of an image
37
38 8. packed_pixel.cpp
39 Illustrates how to create a custom pixel model - a pixel whose channel size is not divisible by bytes
40
41 9. dynamic_image.cpp
42 Example of using images whose type is instantiated at run time
43
44