gil/example
2019-11-10 22:31:27 +01:00
..
cmake Add GIL_ENABLE_EXT_DYNAMIC_IMAGE to CMakeSettings.json example [ci skip] 2019-10-28 23:10:41 +01:00
adaptive_threshold.cpp added definition of gaussian adaptive threshold (#379) 2019-08-20 02:04:11 +05:30
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 Include <boost/gil.hpp> in examples (#355) 2019-07-29 20:49:32 +02:00
convolve2d.cpp Hide convolve_1d, convolve_2d and kernel_2 in namespace detail (#397) 2019-10-24 12:50:56 +02:00
dynamic_image.cpp Replace Boost.MPL with Boost.MP11 (#274) 2019-04-14 22:13:45 +02:00
harris.cpp Implement Sobel and Scharr operators (#392) 2019-10-29 22:38:04 +06:00
hessian.cpp Implement Sobel and Scharr operators (#392) 2019-10-29 22:38:04 +06:00
histogram.cpp Remove uses of Boost.Bind and Boost.Lambda (#212) 2019-01-13 02:03:25 +01:00
interleaved_ptr.cpp Include <boost/gil.hpp> in examples (#355) 2019-07-29 20:49:32 +02:00
interleaved_ptr.hpp Include <boost/gil.hpp> in examples (#355) 2019-07-29 20:49:32 +02:00
interleaved_ref.hpp Include <boost/gil.hpp> in examples (#355) 2019-07-29 20:49:32 +02:00
Jamfile Implement Sobel and Scharr operators (#392) 2019-10-29 22:38:04 +06: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 Typo in README [ci skip] 2019-11-10 22:31:27 +01:00
resize.cpp Update example resize.cpp for new GIL IO 2018-12-08 11:24:44 +01:00
sobel_scharr.cpp Implement Sobel and Scharr operators (#392) 2019-10-29 22:38:04 +06:00
test_adaptive.png added definition of gaussian adaptive threshold (#379) 2019-08-20 02:04:11 +05:30
test.jpg Exchanging broken test image. 2010-03-20 17:01:45 +00:00
threshold.cpp Implement algorithms for binary and binary inverse thresholding (#313) 2019-06-18 21:42:43 +02: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

  • examples of C++ programs using GIL
  • configuration files for CMake integrations in popular IDEs

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.