Imported Upstream version 1.72.0
[platform/upstream/boost.git] / libs / gil / doc / html / _sources / design / conclusions.rst.txt
1 Conclusions
2 ===========
3
4 .. contents::
5    :local:
6    :depth: 2
7
8 The Generic Image Library is designed with the following five goals in mind:
9
10 Generality
11 ----------
12
13 Abstracts image representations from algorithms on images.
14 It allows for writing code once and have it work for any image type.
15
16 Performance
17 -----------
18
19 Speed has been instrumental to the design of the library.
20 The generic algorithms provided in the library are in many cases comparable
21 in speed to hand-coding the algorithm for a specific image type.
22
23 Flexibility
24 -----------
25
26 Compile-type parameter resolution results in faster code, but severely limits
27 code flexibility. The library allows for any image parameter to be specified
28 at run time, at a minor performance cost.
29
30 Extensibility
31 -------------
32
33 Virtually every construct in GIL can be extended - new channel types,
34 color spaces, layouts, iterators, locators, image views and images
35 can be provided by modeling the corresponding GIL concepts.
36
37 Compatibility
38 -------------
39
40 The library is designed as an STL complement.
41 Generic STL algorithms can be used for pixel manipulation, and they are
42 specifically targeted for optimization. The library works with existing
43 raw pixel data from another image library.