gil/example
Mateusz Łoskot 895aa77fb6
[CMake] Remove GIL_DOWNLOAD_FINDBOOST option (#307)
Upcoming CMake 3.15 introduced more dependencies in FindBoost.cmake
what makes the downloading impractical.
2019-06-05 09:19:17 +02:00
..
cmake [CMake] Remove GIL_DOWNLOAD_FINDBOOST option (#307) 2019-06-05 09:19:17 +02:00
affine.cpp Rename point2<T> to point<T> (#155) 2018-10-19 09:32:23 +02:00
CMakeLists.txt [cmake] Bundle all Boost and IO libraries in gil_dependencies target 2018-12-08 23:20:54 +01:00
convolution.cpp Fix hard-wired use of Boost.Array static_size member (#200) 2018-12-18 11:57:32 +01:00
dynamic_image.cpp Replace Boost.MPL with Boost.MP11 (#274) 2019-04-14 22:13:45 +02:00
histogram.cpp Remove uses of Boost.Bind and Boost.Lambda (#212) 2019-01-13 02:03:25 +01:00
interleaved_ptr.cpp Apply clang-tidy modernize-use-using to all examples (#210) 2019-01-12 17:36:29 +01:00
interleaved_ptr.hpp Add missing equal sign in interleaved_ptr.hpp (#299) [ci skip] 2019-05-07 21:44:45 +02:00
interleaved_ref.hpp Replace Boost.MPL with Boost.MP11 (#274) 2019-04-14 22:13:45 +02:00
Jamfile [ci] Ensure CI builds clone pre-determined super-project branch 2019-02-19 18:21:28 +01:00
mandelbrot.cpp Correct order of constexpr and type specifier 2019-01-15 00:42:20 +01:00
packed_pixel.cpp Apply clang-tidy modernize-use-using to all examples (#210) 2019-01-12 17:36:29 +01:00
README.md Update example/README.txt and convert to Markdown [ci skip] 2019-03-06 19:24:13 +01:00
resize.cpp Update example resize.cpp for new GIL IO 2018-12-08 11:24:44 +01:00
test.jpg Exchanging broken test image. 2010-03-20 17:01:45 +00:00
x_gradient.cpp Apply clang-tidy modernize-use-using to all examples (#210) 2019-01-12 17:36:29 +01:00

Boost.GIL Examples

This directory contains GIL sample code.

We provide Boost.Build (Jamfile) and CMake (CMakeLists.txt) configurations to build the examples. See the CONTRIBUTING.md for details on how to run b2 and cmake for Boost.GIL.

Each example is build as a separate executable. Each executable generates its output as out-<example_name>.jpg. For example, the resize.cpp example generates the image out-resize.jpg.

The following examples are included:

  1. resize.cpp Scales an image using bilinear or nearest-neighbour resampling.

  2. affine.cpp Performs an arbitrary affine transformation on the image.

  3. convolution.cpp Convolves the image with a Gaussian kernel.

  4. mandelbrot.cpp Creates a synthetic image defining the Mandelbrot set.

  5. interleaved_ptr.cpp 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.

  6. x_gradient.cpp Horizontal gradient, from the tutorial

  7. histogram.cpp Algorithm to compute the histogram of an image

  8. packed_pixel.cpp Illustrates how to create a custom pixel model - a pixel whose channel size is not divisible by bytes.

  9. dynamic_image.cpp Example of using images whose type is instantiated at run time.