Reference
The CImg Library is an image processing library, designed for C++ programmers. It provides useful classes and functions to load/save, display and process various types of images.
The CImg Library consists in a single header file CImg.h
providing a set of C++ template classes that can be used in your own sources, to load/save, process and display images or list of images. Very portable (Unix/X11,Windows, MacOS X, FreeBSD,..), efficient, simple to use, it's a pleasant toolkit for coding image processing stuff in C++.
The header file CImg.h
contains all the classes and functions that compose the library itself. This is one originality of the CImg Library. This particularly means that :
CImg.h
file, and you get a working C++ image processing toolkit.The CImg Library is structured as follows :
T
(template parameter). This is actually the main class of the library.try { ..} catch (CImgException) { .. }
block. Subclasses define precisely the type of encountered errors.Knowing these four classes is enough to get benefit of the CImg Library functionalities.
Below is some very simple code that creates a "Hello World" image. This shows you basically how a CImg program looks like.
Which can be also written in a more compact way as :
Generally, you can write very small code that performs complex image processing tasks. The CImg Library is very simple to use and provides a lot of interesting algorithms for image manipulation.
The CImg library is a very light and user-friendly library : only standard system libraries are used. It avoids handling complex dependencies and problems with library compatibility. The only thing you need is a C++ compiler :
If you are using other compilers and encounter problems, please write me since maintaining compatibility is one of the priorities of the CImg Library. Nevertheless, old compilers that do not respect the C++ standard will not support the CImg Library.
If you are ready to get more, and to start writing more serious programs with CImg, you are invited to go to the Tutorial : Getting Started. section.
Copyrights (C) From october 2004, David Tschumperlé - GREYC UMR CNRS 6072, Image team.
Copyrights (C) January->September 2004, David Tschumperlé.
Copyrights (C) 2000->2003, David Tschumperlé - INRIA Sophia-Antipolis. Odyssée group.