• Home
Name
Date
Size
#Lines
LOC

..--

b2/12-May-2024-9573

clang-format/12-May-2024-1913

cmake/12-May-2024-542523

CMakeLists.txtD12-May-20241.3 KiB4641

JamfileD12-May-20241,004 5142

README.mdD12-May-20241.4 KiB4631

adaptive_threshold.cppD12-May-20241.4 KiB3419

affine.cppD12-May-20241.2 KiB3518

convolution.cppD12-May-20242.7 KiB7021

convolve2d.cppD12-May-20241.3 KiB4226

dynamic_image.cppD12-May-2024824 2312

harris.cppD12-May-20247.5 KiB208171

hessian.cppD12-May-20247.4 KiB209176

histogram.cppD12-May-20241.3 KiB5027

interleaved_ptr.cppD12-May-20242.6 KiB7038

interleaved_ptr.hppD12-May-20247.9 KiB202118

interleaved_ref.hppD12-May-20246.2 KiB15987

mandelbrot.cppD12-May-20242.6 KiB7652

packed_pixel.cppD12-May-20242.8 KiB6017

resize.cppD12-May-2024894 3014

sobel_scharr.cppD12-May-20241.4 KiB4640

test.jpgD12-May-20242 KiB

test_adaptive.pngD12-May-2024147.4 KiB

threshold.cppD12-May-20241.1 KiB3014

x_gradient.cppD12-May-20241.7 KiB6039

README.md

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