The screenshots below have been taken from the different sample programs distributed within the CImg package. Click on an image to enlarge it and on the source filename to display it. A link to a streaming video of the corresponding effect is sometimes proposed. If you are interested by a live demo on your system, go to the download page and get the pre-compiled binaries for your system.
| : The main demo sample of the CImg package (length = 1433 lines of code) : CImg_demo.cpp Contains 26 different real-time animations, as well as a nice selection menu. Look at the video to see all the different effects running.
| : A 2D bump-mapping effect (30 lines of code). : CImg_demo.cpp You can move the light source using the mouse. This sample shows how to handle mouse motion and create an animation in a window. It demonstrates also that the CImg library is quite fast ! Everything is computed from scratch here, including the logo, the background and the light.
| : Computation of the Hough Transform. (length = 95 lines of code) : hough_transform.cpp Illustrate the computation of the Hough transform to detect lines in 2D images. Provide also simple user interface to select and display lines.
| : Show how to do a fading between two images. (length = 35 lines of code). : fade_images.cpp Very small code to perform a funny effect. Also demonstrate how to easily deal with command line arguments.
| : A fully functional Mandelbrot fractal explorer. (length = 51 lines of code). : CImg_demo.cpp Show how to use the predefined feature selection function present in the CImg library.
| : A simple shoot-em-up game, featuring the people of the Robotvis/Odyssee Lab. (length = 180 lines of code). : odykill.cpp Another demonstration of handling mouse and creating animation for pedagogic purposes.
| : An implementation of an image registration algorithm, with multiscale capability. (length = 201 lines of code). : image_registration.cpp Compute a motion map between two images, and warp one into the another through a smooth animation.
| : A mini-painting program. (length = 30 lines of code). : CImg_demo.cpp This is not a replacement to Photoshop, but it already includes a filling algorithm as well as a color selection tool.
| : A classical demomaking-effect, called 'rotozoom'. (length = 20 lines of code). : CImg_demo.cpp Smell the old school parfume of the atari/amiga demos.
| : An animation featuring triangles that are rotating. (length = 50 lines of code). : CImg_demo.cpp Could be a replacement to your classical screen saver.
| : A tool to select sub-images/volumes in bigger images/volumes. (length = 70 lines of code). : inrcast.cpp Show that the CImg library is perfectly working with 3D vector-valued volumes.
| : An example of real-time 3D rendering. : CImg_demo.cpp No use of OpenGL or VTK in this example, only pure CImg software functions are used !
| : An example of the ellipse drawing function, used to bounce an elastic bubble (length = 25 lines of code). : CImg_demo.cpp
| : An real-time 3D virtual landscape explorer (length = 40 lines of code). : CImg_demo.cpp The altitude map is based on a 'fractal plasma' generator.
| : A nice plasma effect with a sinus scroller (length = 70 lines of code). : CImg_demo.cpp
| : An implementation of the well known Tetris game (length = 130 lines of code). : tetris.cpp Very small code for a complete version of the Tetris game.
| : The implementation of the Tschumperlé-Deriche algorithm for image restoration and Inpainting. (length = 170 lines of code). : pde_TschumperleDeriche2D.cpp See the corresponding publication for more detail on the algorithm.
| : A very smart and classical demo effect called 'Shade bobs' (length = 60 lines of code). : CImg_demo.cpp
| : A nice Blob Editor in only few lines (length = 90 lines of code). : CImg_demo.cpp
| : 3D Metaballs animation, using 3D capabilities of CImg (length = 23 lines of code). : CImg_demo.cpp
| : A tool to visualize images as surfaces in 3D (length = 100 lines of code). : image_surface.cpp
| : A 3D viewer for Diffusion tensor imaging datasets (length = 526 lines of code). : dtmri_view.cpp
| : Applying the wave equation on an 3D image-mapped surface. (length = 55 lines of code). : CImg_demo.cpp
| : A simple 2D curve editor using spline interpolation (length = 300 lines of code). : curve_editor.cpp
| : A complete and funny game featuring colored balls in less than 128 lines of code ! (length = 121 lines of code). : jawbreaker.cpp
| : A cool 3D reflection effect, using some CImg 3D object rendering tricks (length = 130 lines of code). : CImg_demo.cpp
| : A demo of image filtering in the Fourier Domain (length = 30 lines of code). : CImg_demo.cpp
| : A simple word puzzle game (length = 100 lines of code). : CImg_demo.cpp