1# Boost.GIL Examples 2 3This directory contains 4 5- examples of C++ programs using GIL 6- configuration files for Boost.Build command line and CMake integration for popular IDEs. 7 8We provide Boost.Build (`Jamfile`) and CMake (`CMakeLists.txt`) 9configurations to build the examples. 10See the [CONTRIBUTING.md](../CONTRIBUTING.md) 11for details on how to run `b2` and `cmake` for Boost.GIL. 12 13Each example is build as a separate executable. 14Each executable generates its output as `out-<example_name>.jpg`. 15For example, the `resize.cpp` example generates the image `out-resize.jpg`. 16 17The following C++ examples are included: 18 191. `resize.cpp` 20 Scales an image using bilinear or nearest-neighbour resampling. 21 222. `affine.cpp` 23 Performs an arbitrary affine transformation on the image. 24 253. `convolution.cpp` 26 Convolves the image with a Gaussian kernel. 27 284. `mandelbrot.cpp` 29 Creates a synthetic image defining the Mandelbrot set. 30 315. `interleaved_ptr.cpp` 32 Illustrates how to create a custom pixel reference and iterator. 33 Creates a GIL image view over user-supplied data without the need to cast to GIL pixel type. 34 356. `x_gradient.cpp` 36 Horizontal gradient, from the tutorial 37 387. `histogram.cpp` 39 Algorithm to compute the histogram of an image 40 418. `packed_pixel.cpp` 42 Illustrates how to create a custom pixel model - a pixel whose channel size is not divisible by bytes. 43 449. `dynamic_image.cpp` 45 Example of using images whose type is instantiated at run time. 46