[ Main ] [ Download ] [ Screenshots ] [ FAQ ] [ Tutorial ] [ Documentation ] [ Forum ] [ Links ]
Latest News

Here are the latest news about the CImg Library project.

Simplification of CImg releases (2010/07/07)
As the CImg Library is now quite stable, I've decided to simplify the release system. I probably release new versions of the CImg package more frequently, but with few changes between successive versions. I guess a new version of CImg will be released when a somewhat 'critical' bug will be found in one function. This will ensure that the user can get the latest and cleaner version easily, directly from the web page. The download page at Sourceforge has been simplified to deal with this new organization.

CImg 1.3.6 Released (2010/06/15)
The CImg 1.3.6 package has been released. This is mainly a released based on bug-corrections, to get something stable before the summer holidays.

Optimizations / Modifications :

- Improved the 'gmic' tool a lot (a kind of command line version of CImg, see http://gmic.sourceforge.net).

Bug corrections :

- Corrected priority operator bug in math parser (operator-).
- Corrected drawing bug in 'CImg::draw_spline()' functions.


CImg 1.3.5 Released (2010/06/15)
The CImg 1.3.5 package has been released.

New features :

- 2010/04/22 : The 'gmic' program has now a new embedded 'shell' mode.

Optimizations / Modifications :

- 2010/04/19 : 'CImg::sort()' can now sort 'along an axis', which means only the first line of the specified axis is sorted, and the other lines are permuted the same way. It may be used to avoid managing an image of permutations.
- 2010/04/19 : It is now possible to specify a z-buffer of any datatype when drawing 3d objects. The 'CImg::display_object3d()' function now uses double-valued z-buffers to get more precision when drawing 3d objects, if the specified input 3d vertices are double-valued.
- 2010/04/19 : 'CImg::display_object3d()' : better management of the zoom in/out when focale is not set to default value. Optimized memory ressources required by this function. Improved the way the pose matrix is handled.
- 2010/04/22 : The traits 'cimg::type' have now a 'id()' method which returns an unique integer that identifies the datatype.

Bug corrections :

- 2010/05/19 : Replaced unsecure string functions by their secure versions, to avoid memory buffer overflow.
- 2010/05/14 : 'CImg::draw_line()' : Corrected clipping bug when passing very big integers.
- 2010/04/09 : 'CImg::{load,save}_graphicsmagick()' : Added explicit calls to the GraphicsMagick initialization/destroy function for better memory management.
- 2010/04/09 : 'CImg::load_jpeg()' : Better handling of jpeg library errors (patch submitted by Martin Petricek).
- 2010/04/23 : 'CImg::display_object3d()' : Corrected bug when light texture were switched on/off in multiple calls.


CImg 1.3.4 Released (2010/04/08)
The CImg 1.3.4 package has been released. Main changes are concerned with bug corrections or improvements. I really feel the library code is now in a consolidation phase, with only minor changes and improvements. This is actually good news !

New features :

- Added functions 'CImg::object3dtoCImg3d()' and 'CImg::object3dtoCImg3d()'. They can transform a 3d object
into a single column vector. It supports all 3d features of CImg, including textures and opacities. So, now, 3d objects can be saved as regular images, or even gathered into lists of 3d objects.
- Added function 'CImg::watershed()' able to compute the watershed transform from an image of labels and a priority map.

Optimizations / Modifications :

- 'CImg[List]::{save,load}()' can now save and load empty images in .cimg[z] format.
- 'CImg::load_bmp()' and 'CImg::{save,load}_jpeg()' have been modified to reduce memory usage.
- Added variants of 'CImg::cubic_at*()' that can cut the interpolated value between specified bounds.
- Modified the way colored sphere primitives are considered in 3d objects. Now, a sphere primitive takes two vertex indices defining the sphere diameter.
- Remove the support of the Carbon library for MacOSX. The code used were old and not fully functional. Use the X11 implementation of the CImgDisplay class instead on MacOSX (without the XShm extension, which is not fully supported yet).
- Modified the way the light texture is specified for phong-based 3d rendering. Now, the light must have as much channels as the spectrum of the image on which the object is drawn. Then, we can do now custom colored lights in phong-shaded 3d mode.
- Modified functions 'CImg::{load,save}_ffmpeg()' so it can compile with different API versions of the ffmpeg library.

Bug corrections :

- 'CImg::get_streamline()' : Corrected problem occuring when streamline went out of the image range.
- 'CImg::save_off()' : 3d objects with incomplete color data may result in wrong memory access.
- 'CImg::save_off()' : 3d objects with sphere primitives were incorrectly saved.
- 'CImgList::insert()' : Shared insertion of an image already present in the instance list was incorrectly done.
- Corrected small bug in math parser concerning the use of the '~' and '!' operators.
- and many other small bug corrections...


CImg 1.3.3 Released (2010/02/05)
The CImg 1.3.3 package has been released. I'm really happy with this release, because it is clearly a stabilized version since no major API changes have been done regarding the previous 1.3.2 release. My opinion is that we have converged into something stable and coherent to use, and there will be probably not big changes in the existing stuffs. I consider this release will last for several (>2) months.
So, don't be afraid to update this time if you were using the 1.3.2, since your code will probably remain compatible with this 1.3.3. update.

* New features :

- Added arithmetic functions 'CImg::[get_]sign()' to compute the sign of image values.
- Added arithmetic functions 'CImg::[get_]sinc()' to compute the sinc() function of image values.
- Added functions 'sinc(),rol(),ror(),isval(),isint(),isnan(),isinf() and isbool()' inside the mathematical parser.
- Added function 'CImg::cubic_atXYZ()' to access 3D voxel with a bicubic interpolator.
- Added functions 'CImg::load_pfm()' and 'CImg::save_pfm()' to add native support of PFM files.

* Optimizations / Modifications :

- Updated G'MIC core and plug-in with various improvements.
- Slight optimizations and corrections of the internal math parser.
- Recoded most of the 'CImg::resize()' function, with faster interpolations, better bicubic, and new Lanczos5 interpolation.
- Update 'CImg::load_png()' to fit with libpng14 API.
- Modified 'CImg::get_projections2d()' to get the minimal value instead of 0 as the intensity of the bottom right area.
- Modified 'CImg::draw_text()' to get more flexibility in the font size. Fonts are interpolated when custom size is requested.
- Removed useless font data. 4 fonts with different sizes remains now in CImg. Other sizes are interpolated from these basis fonts. This reduces the header file size a lot.
- CImg exception classes know derives from std::exception, and the 'message()' method has been renamed to the more standard 'what()'.
- Exception messages have been improved in all CImg functions and methods.

* Bug corrections :

- Key repetition bug corrected in 'CImg::display_plot()'.
- Small bug corrected in arithmetic operators using math expression strings with references to current image.
- Improved robustness of preview window in 'gmic_gimp' plug-in for GIMP.
- Corrected bugs in 'CImg::draw_polygon()', corresponding to singular cases.
- And as always, a lot of various bugs corrections and improvements in library and example files.


17th -> 25th postcards received ! (2010/02/05, 10:48am)
I received a lot of postcards these last months and I really want to thanks all the senders for this nice thought. Looking at all these different places gives me more energy to continue the work on CImg !


CImg 1.3.2 Released (2009/10/15)
The CImg 1.3.2 package has been released. There are major changes and ameliorations, resulting in some compatibility breaks with the previous API. The CImg becomes a mature library, with a real coherence in the API calls.

* New features :

- Added functions 'CImg::load_exr()' and 'CImg::save_exr()' that handle input/ouput
of .exr files, using the OpenEXR library (http://www.openexr.com). Many thanks to
Michael Holroyd (http://www.cs.virginia.edu/~mjh7v) for his inspiring piece of code !
The OpenEXR library is used when macro 'cimg_use_openexr' is defined.
- Added functions 'CImg::streamline()' and 'CImg::get_streamline()' that return
streamlines of vector fields, using various integration techniques.
- Added new code example 'examples/spherical_function3d.cpp' that shows how to create
custom 3D objects in CImg.

* Optimizations / Modifications :

- Ended support for Visual C++ 6.0. This compiler was a pure shit and gave me a lot of headaches
to ensure the compatibility of CImg. I tried to support it anyway until the end, but I reached
a state where each file compilation gives me an 'Internal Compiler Error', so I really guess this
is time to abandon this compiler now (CImg 1 - VC++ 0 )
- Added 'explicit' keyword for constructor 'CImg(const char *)'
so that implicit conversions from char* to CImg is not done anymore.
- Added variants of arithmetic and assignement operators that takes a string as an input.
The string is auto-detected to be one of these three types : formula, values list or filename.
- Re-organized and modified operators of all classes for easier use and better coherence.
- Removed most of the arithmetic operators in 'CImgList'. The preferred way to apply
operators on list should be via 'cimglist_apply()'.
- Reduced the number of function prototypes for displaying 3D objects. Now, 3D vertices must
be defined as 'CImg' only.
- Some important API changes for 'CImgList'. Particularly, the 'size' member is renamed 'width',
and the 'size()' function appears. It eases the coding of template functions that can take 'CImg'
or 'CImgList' as parameters.
- Improved documentation.
- 3D object display function now activates the Z-buffer by default (you can deactivate it with CTRL+Z).
New keyboard shortcuts have been added : CTRL+A (show/hide 3D axes), and CTRL+F1-F7 (change rendering mode).
- Updated code for using the Board library. Works now with the latest available version (0.8.6b).
- Renamed functions 'CImg[List]::transfer_to()' to 'CImg[List]::move_to()'.
- Allow .cimg file to have commentaries, before the header starts. Comment lines start with '#'.
- Added type parameter to macros 'cimg_forNxN()' and 'cimg_getNxN()' to allow working with neighborhood
that have a type different from the image they are read from.
- 'CImg::blur_anisotropic()' has been optimized. Gives same results but slightly more quickly.
- Removed plugin 'plugins/integral_line.h', because streamline computation is now integrated into CImg library core.
- Removed plugin 'plugins/noise_analysis.h', since function 'CImg::variance_noise()' has been recoded in
the library core.
- Added optimized versions of 'CImg::erode()' and 'dilate()' for rectangular masks. Thanks a lot to
Antonio Albiol for his inspiring piece of code !
- Changed the range of CMY and CMYK colorbases to [0,255] instead of [0,1].
- Added variable assignment operator in the CImg math parser.
- Added parameters to set light position in 'CImg::display_object3d()'.
- Updated code requiring FFMPEG libraries. Compiles now with the latest API from the FFMPEG SVN. Thanks to
Guillaume Nee who made it possible !

* Bug corrections :

- Corrected function 'CImg::save_magick()' to fit with the latest Magick++ API.
- Corrected function 'CImg::load_dlm()' to avoid infinite loops with invalid files.
- Several bugs corrections and improvements in various files.


13th, 14th, 15th and 16th postcards received ! (2009/06/16, 11:21am)
I received four postcards in a single month, so thanks all the senders for this nice thought. Thank you Sebastien (2 postcards, double shot !), Jaime and Jean-Michel !


CImg 1.3.1 Released (2009/05/27)
The CImg 1.3.1 package has been released. There are minor changes and ameliorations.

* New features :
- Added configuration macro 'cimg_file_separator' that takes value "/" or "\" depending on which OS is running. This macro is used in load/save functions for better portability.
- New example file 'examples/gaussian_fit.cpp' which demonstrates how to apply the Levenberg-Marquardt algorithm to fit a 3-parameter gaussian on a set of sample points.
- Added function 'CImg[{Display,List}]::empty()' that returns a reference to an empty object (can be used to pass empty images as default values of function parameters).
- Added variant of the function 'CImg::draw_triangle()' to draw triangle with linearly interpolated colors defined at each triangle vertex.
- Added a formula parser in CImg, so that many arithmetic operators can use it to evaluate expressions (given as a C-string).
- Added example file 'examples/plotter.cpp' that plots a mathematical function on an interactive window.
- Added functions 'CImg::index()' and 'CImg::map()' that can index an image with a multi-spectral palette, or map a multi-spectral palette on an image.

* Optimizations / Modifications :
- Added parameter 'bytes_per_pixel' to force the use of 8 or 16 bits modes in functions 'CImg::save_magick()', 'CImg::save_pnm()' and 'CImg::save_png()'. Thanks to Julien Morat for pointing this out to me.
- Added parameter 'backward' to 'CImg::displacement_field()', allowing to select between forward of backward estimation procedure.
- Parameters 'ru,rv' in 'CImg::draw_ellipses()' have been replaced by parameter 'angle'.
- Function 'CImg[List]::get_split()' is now able to split an image into bloc of given pixel size.
- Changed 'zbuffer' parameter type to 'CImg' in 'CImg::draw_*' functions.
- Remove 'GREYCstoration' specific code. The GREYCstoration algorithm is now a part of the G'MIC framework. Note that the two functions 'CImg::blur_anisotropic()' and 'CImg::blur_patch()' are still here to smooth an image anisotropically (are the core algorithm of the former GREYCstoration).

* Bug corrections :
- Corrected 'CImg::translate()' : function parameters were the opposite of the real translation done.
- Modifications on CImg.h to be more compatible with the old VC++6 compiler.
- Corrected 'CImg::get_histogram()'.
- Corrected 'CImg::load_ascii()'.
- And lot of small bugs corrections.


11th and 12th postcards received ! (2009/02/25, 11:21am)
I am a bit late, since I received these postcards months ago, one from Florida/USA and one from Saint Etienne/France ! Thank you Joel and Yann !


CImg 1.3.0 Released (2009/02)
The CImg 1.3.0 package has been released. There are several changes and ameliorations.

The 1.3.0 version of the CImg Library is a major release, and will probably break the compatibility with your existing code. Anyway, the overall philosophy is the same so converting your code should not require lot of work fortunately.

* New features :
- Added function 'CImg::[get_]distance()' that compute the Euler unsigned distance map from a shape of specified isovalue in an image, using a fast linear algorithm.
- Added functions 'CImg<>::set_linear_at{X,Y,Z}()' allowing to set pixel values using float-valued coordinates, with linear interpolation.
- Added z-buffering capabilities in some drawing functions, so that displaying a 3D object with 'CImg::draw_object3d()' now takes care of eventual crossing primitives. (added shortcut CTRL+Z to enable/disable zbuffering in 'CImg::display_object3d()'.
- Added functions 'CImgList::is_same*()' to check dimensions of image lists.
- Added plugin 'plugins/skeleton.h', as well as example of use 'examples/skeletonize.cpp' that computes the skeleton of a shape (binary image). Thanks to F-X Dupé for this nice contrib !
- Added function 'CImg::get_elevation3d()' that constructs a 3D object by 'elevating' an instance image.
- In function 'CImg::sharpen()', two sharpening methods are now implemented : shock filters and inverse diffusion.
- Added function 'CImg[List]::save_ffmpeg()', allowing to save an image sequence, directly as a movie file, using the FFMPEG library. Thanks to David. G. Starweather for this very nice contribution !
- Added function 'CImg::[get_]warp()' that can warp an image using a deformation field.
- Added function 'CImg::[get_]solve_tridiagonal()' that can quickly solve a tridiagonal linear system of equations (use the Thomas Algorithm).
- Added function 'CImg::[get_]load_dcraw_external()' that allows to read RAW digital camera files, using the open-source external tool 'dcraw'.
- Added file 'examples/CMakeLists.txt' to generate makefile using the 'cmake' tool (thanks to Baptiste Mougel for this nice contribution).
- Added functions 'CImg::display_graph()' and 'CImg::select_graph()' that can be used to display a graph plot or crop a sub-graph.
- Added function 'CImg::[get_]autocrop()' that can autocrop an image regarding to a background value or color.
- Added new demo 'Word Puzzle' in file 'examples/CImg_demo.cpp'.
- Added new plugin 'plugins/cimgIPL.h', as well as example file 'examples/use_cimgIPL.h' that shows how to convert between CImg and IplImage structures (used in OpenCV). Thanks to Haibo Zheng for this nice contribution !
- Function 'CImg::load_ffmpeg()' is now able to return information on the main video stream, without having to load frames.
- New function 'CImg[List]::valuestring()' returns a C-string containing values of the image pixels.
- Added file 'examples/gmic4gimp.cpp' which implements a G'MIC plug-in for GIMP.
- Added file 'resources/cimg_buildpackage' which is a bash script that generates package files for CImg.
- Added function 'cimg::prand()' which returns a random variable following a Poisson distribution.

* Optimizations / Modifications :
- The API of the library has been quite largely modified. It means that the 1.3.0 release is not meant to be fully compatible with previous versions. This is the beginning of a new important branch.
- Functions 'CImg[List]::load()' can now check for magick numbers for determining file format (instead of using only their filename extension).
- Cleaned lot of code in 'CImg::draw_*()' functions. Few of them have now different signatures, particularly 'CImg::draw_text()', 'CImg::draw_spline()' and 'CImg::draw_image()'.
- Improved warning removal when compiling on Microsoft Visual C++ compiler. It is now very rare to get warnings when compiling CImg-based files !
- Plugin 'plugins/distance_saito.h' has been removed, since a new and clean implementation of the distance function is now available in the 'CImg.h' file.
- Function 'CImg::equalize_histogram()' has been renamed to 'CImg::equalize()'.
- Functions 'CImg::get_gradient()', 'CImg::get_structure_tensor()' and 'CImg::get_hessian()' now replaces the old versions.
- Provided example file 'examples/inrcast.cpp' has been renamed and recoded as 'examples/gmic.cpp'. G'MIC is now an independant project, having its own web page : http://gmic.sourceforge.net/.
- Plugin 'plugins/cimgmatlab.h' has been updated.
- Added pipe support (for POSIX systems) in load/save functions using external tools, so that a temporary file is not necessary to read/write.
- Function 'CImg::load_analyze()' can now read niftii files directly using a FILE* argument.
- Improved global structure of the CImg package.
- Silent output for 'CImg::{load_save}_ffmpeg_external()' on Windows.
- Better zoom-in procedure in 'CImg::display()'.
- Function 'CImg::get_hessian()' now allows to specify the set of desired axes.
- Macros 'cimg_*_path' do not exist anymore. Instead, the user can dynamically change these paths used by CImg, by using functions' cimg::*_path()'.
- Code corrections in order to compile without warnings on g++ 4.3 version.
- Added 'windows' targets in the 'examples/Makefile', so compiling examples under MinGW is straightforward.
- Added soft thresholding capability to 'CImg::threshold()'.

* Bug corrections :
- Corrected bug related to X11 events on some Windows Managers, thanks to Rainer Steffens for his nice patch !
- Corrected normalization bug that occured when doing inverse FFT of images, using libfftw3.
- Corrected endianness problem when reading 16 bits PNM files.
- Corrected small bug in 'CImg::display()' : drawn coordinates were wrong when user had selected a region to zoom in.
- Extension 'tiff' is now recognized in 'CImg::load()'.
- Corrected computation of variance (=0) when image has only one element.
- Corrected y-range bug in 'CImg::draw_ellipse()'.
- Corrected bug in 'CImg::save_pandore()' when saving int images on 64bits systems. - And many small bug corrections...

10th postcard received ! (2007/08/17, 02:15pm)
Today, I received another postcard from Palermo/Italia ! Thank you for this one. Unfortunately, the senders did not give a e-mail, and thus I cannot thank them directly. But if you read me, thanks a lot ! My postcard wall is growing slowly...


CImg 1.2.9 Released (2008/06/26, 13:00)
The CImg 1.2.9 package has been released. There are several changes and ameliorations.

*-----------------------------
*-----------------------------
* Changes from 1.2.8 to 1.2.9
*-----------------------------
*-----------------------------

* New features :
- Added new example file 'examples/captcha.cpp', which can be used to draw captcha images. This is a very short and simple code, so it can be interesting for a first approach of CImg.
- Added functions 'CImg::scale_2x()' and 'CImg::scale_3x()' allowing to upscale an image with a edge-directed algorithm (see 'http://scale2x.sourceforge.net/')/
- Added function 'CImg::save_cpp()' allowing to save an image directly as a C/C++ source code.
- Added function 'CImg::draw_mandelbrot()' allowing to draw quadratic mandelbrot fractal set on images.
- Added a new demo effect 'Fish-Eye Magnification' in file 'examples/CImg_demo.cpp'.
- Added new fields in CImgDisplay for an easy test of keys pressing. Very useful for testing complicated combinations.
- Added functions to read/save gzipped files.
- Added compression option for .cimg files (requires the use of the 'zlib' library).
- Added color conversions for CMY and CMYK color bases.

* Optimizations / Modifications :
- Big code cleaning and re-organization in file 'CImg.h', making the things more clear.
- Function 'CImg::load_ascii()' has been modified to allow comments before specifying image dimensions.
- Functions 'CImg[List]::print()' have been slightly modified to be more precise and clear. Also used in functions 'CImg[List]::display()'.
- Improved functionalities of the image processing tool 'inrcast.cpp'.
- Improved 'CImg[List]::display()' function allowing easy navigation and zooming in images.
- Add native use of ffmpeg libraries to load video sequences (Thanks to David Starkweather for his nice contribution !)
- Optimized function 'CImg::permute_axes' for common used cases (planar to interleaved RGB and RGBA).
- Added parameter 'step_frame' in functions that can load video sequences, i.e. CImg[List]::load_yuv(), CImg[List]::load_tiff(), CImg[List]::load_ffmpeg(), so that frames can be skipped when loading the video files.
- Removed parameter 'events_type' in CImgDisplay functions. By default, a display is always catching all user events. Having different choices made slight problems between different architectures (and was not really useful).
- Removed plugin 'plugins/toolbox3d.h'. Functions of the plug-ins are now natively integrated into the CImg.h file, as well as the LibBoard library support.
- Renamed functions 'CImg<>::*pix?d()' to 'CImg<>::*at?()'.

* Bug corrections :
- Small bug in functions 'CImg[List]::contains()' were corrected.
- Bug correction in function 'CImg::[get_]stats()' : offset of min and max values were sometimes incorrect.
- Bug correction in CImgDisplay events for Windows-based OS. When mouse leaved a window, coordinates didn't reset to -1 sometimes.
- Small non-computational bug correction in 'CImg::symmetric_eigen()'.
- Removed g++ warning that occured when using 'libpng' ('warning: argument 'xxx' might be clobbered by 'longjmp' or 'vfork').
- Corrected small illumination bug with double sided 3D objects in CImg::draw_object3d().
- And a lot of other small improvements and bug corrections...


CImg 1.2.8 Released (2008/04/18, 13:00)
The CImg 1.2.8 package has been released. There are several changes and ameliorations.

*-----------------------------
*-----------------------------
* Changes from 1.2.7 to 1.2.8
*-----------------------------
*-----------------------------

* New features :
- Added native Carbon support in CImgDisplay. Allows to run CImg on MacOSX without installing X11. This is a beta support, so not activated by default. Define 'cimg_use_carbon' to enable it. Many Thanks to Adrien Reboisson, Romain Blei and Jean-Marie Favreau for this nice contribution. Any comments and contributions are welcome.
- Added variant of 'CImgList::remove()' that can remove several images from a CImgList list at the same time.
- Added new numbered macros 'cimg_plugin1...8', for easy inclusion of multiple CImg plug-ins.
- Added plugin 'plugins/distance_saito.h' that implements the Saito's distance transform.
- Added function 'CImg::blur_patch()' that performs a patch-based Tikhonov flow on the image. Allows to denoise and regularize image quite well (is time-consuming anyway).
- Functions 'CImg::load_tiff()', 'CImgList::load_tiff()', 'CImg::save_tiff()' and 'CImgList::save_tiff()' has been (re)-coded. It is now possible to read/save multi-pages tif image files worriless.
- Native support for 'icc' compiler (Intel C++ compiler) added in the Makefile. Just type 'make CC=icc olinux' to compile using icc (offers nice performances in code optimization).
- Started support of OpenMP directives, to allow parallelization of CImg functions in order to improve performances. Not few used, by this could change in the future.
- Added functions to load/save video sequences using the external tool FFMPEG (http://http://ffmpeg.mplayerhq.hu/). 'inrcast' is now able to read video sequences using FFMPEG.
- Added new color basis conversions : RGBtoHSI(), HSItoRGB(), HSLtoRGB() (Thanks to Cesar Martinez for his contribution).
- Added example file 'examples/radon_transform.cpp', provided by David G. Starkweather (Thanks guy!).

* Optimizations / Modifications :
- The main library file 'CImg.h' is now distributed under dual license CeCILL or CeCILL-C.
- Patched function 'CImg::load_tiff()' for a better support of float-valued tiff images.
- Renamed 'CImg::inverse()' as 'CImg::invert()' and 'CImg<>::pseudoinverse()' as 'CImg::pseudoinvert()'.
- Function 'CImg::displacement_field()' has been modified to consider a multi-valued geometry for motion detection (so color images are naturally taken into account now).
- Optimized functions 'CImg::dilate()' and 'CImg::erode()' - Slightly optimized pixel access and display rendering functions.
- Used native mutex mechanism of X11 instead of the pthread library.
- Removed deprecated example file 'examples/pslider.cpp'.
- Renamed 'cimg::PI' to 'cimg::valuePI' to avoid compilation problems with some C++ compilers that define the PI macro.
- Added specular type lightning in routines that draw 3D objects. Parameters 'specular_light' and 'specular_shine' replace the old 'ambient_light' parameter.

* Bug corrections :
- Bug corrected in 'CImg::draw_polygon()' : wrong scanlines were drawn with some complex polygons.
- Bug corrected in 'CImg::convolve()' and 'CImg::correlate()'. Happened when dealing with non square masks with even dimensions.
- Bug corrected in 'CImg::save_png()' and 'CImg::load_png()' when dealing with 16 bits images in little-endian proc.
- Bug corrected in 'CImg::get_coordinates()' when dealing with 2-channels images.
- Bug corrected, 2-channels images were not correctly displayed (blue channel was used instead of being 0).
- And a lot of other small bug corrections...

Contribution call : CImg survey (2008/01/04, 11:11)
I've added a CImg Library survey, in order to better know profiles of CImg users and visitors. If you have 20 seconds of free time, you are welcome to fill it in !

.

CImg 1.2.6 Released (2008/01/04, 11:11)
The CImg 1.2.6 package has been released. This is a small improvement but has nice small new things in it.

*-----------------------------
*-----------------------------
* Changes from 1.2.5 to 1.2.6
*-----------------------------
*-----------------------------

* New features :
- Added functions 'CImg::fillV(), CImg::fillZV() and CImg::fillYZV()' allowing to set image values at a specified pixel and along specified axes.
- Added variant of 'CImg::get_dijkstra()' allowing to use any function/class for definition of weights.
- Added new interpolation technique (moving average) in 'CImg::resize()' allows very precise image resizing (Thanks to François Lauze who provided me with some of its code).
- Added lot of new and useful neighborhood loop macros. A new executable 'examples/generate_loop_macros.cpp' allows to generate 2D loops for arbitrary neighborhood size. A new plugin 'plugins/loop_macros.h' has been created, containing all loops NxN (until N=32) and NxNxN (until N=8).
- Added separate component and YCbCr color base processing in options of 'examples/greycstoration.cpp'
- Added macros 'cimg_argument?()' allowing to retrieve command lines that are not options (not beginning with a '-').

* Optimizations / Modifications :
- Macros with neighborhood loops have been extended and simplified. Some of the previous ones have been deleted, others have appeared. Basically, no functionnalities have been removed.
- Macro 'cimg_version' is now 126 instead of 1.26, allowing easy comparison with integer values.
- Changed traits name in cimg:: for more coherence.

* Bug corrections :
- Corrected function 'CImg::cubic_pix[1,2]d()'.
- Corrected bug in 'CImg::blur_median()'.
- Corrected bug with temporary random filenames when using multi-threading.
- Corrected small bug in 'CImg::draw_point()'.
- Corrected name 'CImg::dijkstra()' instead of 'CImg::djikstra()'.
- Corrected compilation bug in some plug-ins.
- And other small bug corrections...

CImg 1.2.5 Released (2007/11/26, 15:08)
The CImg 1.2.5 package has been released.

*-----------------------------
*-----------------------------
* Changes from 1.2.4 to 1.2.5
*-----------------------------
*-----------------------------

* New features :
- Added function 'CImg::label_regions()' that can label deconnected regions.
- Added overload of function 'CImg::draw_point()' that is able to draw point clouds.
- Added function 'CImg::get_blur_bilateral()' that implements bilateral filtering.
- Added functions 'CImg::get_RGBtoBayer()' and 'CImg::get_BayertoRGB()' that converts between RGB and Bayer-coded representation of an image.
- Added functions CImg[List]::min(), max(), mean(), variance(), get_stats(), and contains() to deal easily with image statistics (class CImgStats is now obsolete and has been moved to plugin 'plugins/deprecated.h').
- Added versions of 'CImg[List]::get_*()' as external functions, so writting 'res=cos(img)*5;' is valid.
- Added postfix versions 'CImg[List]::operator++(int)' and 'CImg[List]::operator--(int)'.

* Optimizations / Modifications :
- Recoded 'CImg::save_magick()' to improve performances when saving images using Magick++ API.
- Recoded 'CImg::draw_fill()' to avoid crashes on large (volumetric) images due to stack overflow.
Also added parameters to choose between 4 or 8 connexity for 2D images.
- Added simple point representation in 'CImg::draw_graph()'.
-> Note that the gtype variable values have been redefined as well !!! <-
- Added parameter 'CImg::quantize()' that allows possible value renormalization.
- Improved documentation.
- Drawing functions accept now templated color pointer, as well as templated image containing color data.
- Recoded Deriche filter. More fast and precise, some cases were buggy.
- Removed class CImgStats (moved to plugin 'plugins/deprecated.h').
- Removed unuseful image copies in some functions.
- Cleaning the code.

* Bug corrections :
- Corrected bug in 'CImg::pseudoinverse()' concerning pseudo-inversion of non-inversible matrices.
- Corrected return value in 'CImg::get_RGBtoHSV()'.
- Corrected value range bug in 'CImg::quantize()'.
- And other small bug corrections...

CImg 1.2.4 Released (2007/09/26, 12:00am)
The CImg 1.2.4 package has been released. This is a minor release but with interesting stuffs anyway.

*-----------------------------
*-----------------------------
* Changes from 1.2.3 to 1.2.4
*-----------------------------
*-----------------------------

* New features :
- Added macro 'cimg_for_lineXY(x,y,x0,y0,x1,y1)' that loops over an image segment (x0,y0)-(x1,y1).
- Added function 'CImg::draw_polygon()' that draws a filled polygon of any shape in the instance image.
- Added macros 'cimg_load_plugin', 'cimg_save_plugin', 'cimglist_load_plugin' and 'cimglist_save_plugin' allowing to easily add file support for your own data format.
- Added plugin 'plugins/add_fileformat.h' to show how to use these new macros to register a new image format in CImg.
- Added version of 'CImg[List]::{load,save}_cimg()' that is able to read/write only sub-images of data stored in a (big) .cimg file.
- Added an online chat on the CImg website, so that users can interact freely.

* Optimizations / Modifications :
- Added functions 'CImg[List]::save_empty_cimg()' that can be used to work with very large images.
You can now create first an empty (big) image, then load/save sub-images into this big .cimg file, without needing much memory.
- Slightly modified the header of .cimg files, so little/big endian info is stored.
- Reorganized some 'CImg[List]::load_*()' functions, trying to avoid unnecessary memory usage.
- Recoded versions of CImg::draw_triangle() that now use the Bresenham's algorithm for interpolation (more precise, while using only integer calculus).
- Added versions of 'CImg::draw_triangle()' and 'CImg::draw_line()' that are able to map textures while correctly handling the perspective correction, so that 3D mapped triangles look correct now.

* Bug corrections :
- Corrected a small bug in get_coordinates() : channels of hyperspectral images with (dim>3) where subsampled instead of cropped for image visualization.
- And many small bug corrections...

Online CImg Library Chat ! (2007/09/26, 11:12am)
I've installed a pretty cool php-based online chat room dedicated to CImg users. This is a convenient way to ask for quick informations if needed, or discuss about the features you would like to see in future versions of CImg. There are not many people right now, but wait and see... You can click on the 'Online chat' section of the menu above to access the chat.

CImg 1.2.3 Released (2007/08/24, 03:00pm)
The CImg 1.2.3 package has been released. This is a quite important release, with some library modifications. I guess upgrading to this version won't be a big problem, but this will be perhaps not as direct as latest releases. The CHANGELOG is quite bigger than usual. A lot of work has been done during summer holidays, and I'm quite happy with the modifications.

*-----------------------------
*-----------------------------
* Changes from 1.2.2 to 1.2.3
*-----------------------------
*-----------------------------

* New features :
- Added file 'example/tron.cpp', implementing a very simple version of the famous 'Tron' game (2 players).
- Added constructor that create a CImg from the content of a CImgDisplay window.
- Added support of the 'Board' library in plugin 'plugins/toolbox3d.h', allowing the saving of 3D objects snapshots in SVG, EPS or FIG vector-graphics formats.
- Added function 'CImgList::[get]_split()' that can split all image of an an image list into a specified axis.
- Added sphere primitive in 'CImg::draw_object3d()'.
- Added function 'CImg::ellipsoid()' in 'plugins/toolbox3d.h'.
- Added useful new constructors 'CImg()' and 'CImgList()' with variable numbers of parameters that can define images or image lists initialized with user-specified values. Example :
CImg img(3,2,1,1, 1,2,3, 4,5,6); defines image [ 1,2,3; 4,5,6 ].
CImgList list(3,1,3,1,1, 1,0,0, 0,1,0, 0,0,1); defines list of three vectors { [1;0;0], [0;1;0], [0;0;1] }.
- Added poly-bezier curve drawing, with 'CImg::draw_spline()' overload.
- Added file 'examples/jawbreaker.cpp', implementing a very funny games featuring small colored balls.
- Added demo '3D Reflection' in 'examples/CImg_test.cpp' showing some tricky uses with the 3D capabilities of CImg.
- Added 'CImg::draw_spline()' for drawing 2D cubic Bezier curves.
- Added plugin 'plugins/jpeg_buffer.h', allowing to read/write directly image data from/to jpeg-coded memory buffers (Many thanks to Paolo Prete who made it possible !).
- Added optional support of the LAPACK library for matrix computation.
Define macro 'cimg_use_lapack' and link your code with LAPACK to enable it (LAPACK routines are slightly faster routines than native CImg ones).
- Added function 'CImg::get_constrast_LUT8()' function which returns a 256 colors palette that has nice properties of being well contrasted when color indices are close to eachothers.
- Added function 'CImg::get_rainbow_LUT8()' that returns a rainbow-type palette.
- Added shortcuts CTRL+PAGE[UP,DOWN] in 'CImg::display_object3d()' to brighten or darken the 3D object.

* Optimizations / Modifications :
- In 'CImg::HSVtoRGB()' and 'CImg::RGBtoHSV()', the H components is now expressed in degree.
- Improved multi-key testing with CImgDisplay.
- Added and modified some 'operator<<()' and 'operator>>()' in 'CImg' and 'CImgList'.
- Renamed 'plugins/primitives3d.h' to 'plugins/toolbox3d.h', and added a new example 'examples/toolbox3d.cpp' that shows how to use it.
- Renamed 'plugins/alias.h' to 'plugins/deprecated.h'.
- Moved function 'CImg::resize_object3d()' to 'plugins/toolbox3d.h'.
- Simplified 'CImgList::insert()' procedures, and removed functions 'CImgList::insert_shared()'.
- Added functions parameters for almost all drawing functions, allowing the correct use of patterns in line drawing (beware, some functions signatures have been slightly modified).
- Renamed 'CImg::feature_selection()' as 'CImg::get_coordinates()' (for better coherence with overall function names). Include 'plugins/deprecated.h' for backward compatibility.
- Optimized function 'CImg::draw_line()'.
- Recoded function 'CImg::draw_circle()', uses now the more precise Bresenham's circle algorithm.
- Improved function 'CImg::sphere()', in plugin 'toolbox3d.h', reducing drastically the number of created points in the 3D mesh.

* Bug corrections :
- Corrected some small bugs in CImg.h to allow the compilation with the Intel C++ Compiler (icc & icl).
- Corrected bug in copy constructor of CImgList<> that didn't make shared copy of images.
- Fixed bug in 'CImg::symmetric_eigen()' : some negative eigenvalues where miscalculated when their absolute values was also an eigenvalue of the considered matrix.
- And many small bug corrections...

Sixth postcard received ! (2007/08/17, 02:15pm)
Today, I received another postcard from Taiwan ! That is a great pleasure to see that CImg is used by some people in Asia. So, thanks to Pr. Kuo-Feng Hwang for your postcard, I added it to the 'growing' postcard list in the main CImg web page :)


New demo '3D Reflection' in CImg 1.2.3 (2007/07/24, 10:25pm)
During hollidays, I always take time to perform some funny code experiments. This time, I tried to create a real-time 3D reflection effect. Of course, it uses some tricks to succed in an acceptable speed, but I like the result, and I've added this example to the 'CImg_demo.cpp' source code. Here is a screenshot of the resulting effect. Click on the image to see the video.


New game 'Jawbreaker' in CImg 1.2.3 (2007/07/24, 10:25pm)
Last night, while playing on the so-called Jawbreaker game in my Pocket PC, I wonder how hard it would be to do a CImg-based version of this game. That was a good excuse to start programming ! I think the result is quite cool so I decided to put it in the CImg/examples directory for the next CImg 1.2.3 release. The source is surprisingly small (about 150 lines of code) and the game is complete. Here is a screenshot of the result below. Click on the image to see the video.


Some CImg 1.2.3 envisaged features (2007/07/20, 02:32pm)
- I decided to (re)enable LAPACK interfacing when doing matrix computations (such as SVD, eigenvalues, system solving). LAPACK routines are well optimized and this could save time for applications that need it. Of course, you are not forced to use LAPACK, since native matrix algorithms already exist in CImg, but this may increase performances in some cases.
- Also, Thanks to Paolo Prete, a new plugin plugins/jpeg_array.h has been added. This adds useful functions in the CImg class to read and write jpeg-compressed image data directly in memory buffer. Very useful when dealing with jpeg images coming from the network for instance (ip webcam).

These features are already implemented in the CVS version, so do not hesitate to test them and tell me if everything's going right.

CImg 1.2.2 Released (2007/07/04, 13:27pm)
The CImg 1.2.2 package has been released. This is a minor release, with a very small CHANGELOG. Basically, I want to put a updated version before the RMLL'07 where I will present the CImg Library.

*-----------------------------
*-----------------------------
* Changes from 1.2.1 to 1.2.2
*-----------------------------
*-----------------------------

* New features :
- Added 'CImg::distance_function()' that can compute distance function to the 0-isophote.
- Added curve editor example in 'examples/curve_editor.cpp'.

* Bug corrections :
- Corrected small bug when trying to found pathname under Windows.
- Corrected bug when using XSHM extension on Mac OS X.
- Corrected/Improved platforms detection by testing the right predefined BSD macros + extra architectures (Thanks to Marc Espie).
- And many small bug corrections...

CImg 1.2.2 on the way (2007/07/02, 19:34pm)
CImg 1.2.2 has been started few days ago. I'm happy to say I've corrected lot of examples such that they perfectly compile now on Visual C++ 6.0. I've also tested it on the new 4.2.0 release of g++, and everything's fine. I find CImg is becoming quite stable and I've less and less debugging from releases to releases, that's good news. I've posted a version CImg-1.2.2beta of the archive in the sourceforge repository, you can already download it (package "in progress") and test it if you want. Any feedback is appreciated.

New example file : curve_editor.cpp (2007/06/27, 11:11am)
I worked on a small 2D curve editor for a collegue and his PhD student at the lab, and I found it interesting enough to share it with CImg users, so here is a new file examples/curve_editor.cpp in the CImg tree (still in CVS for the moment, but will be available in the next stable release). Basically, you can add/move/remove control points and a piecewise-polynomial curve passing through these points is computed. It's a quite small source (300 code lines with header and comments). You can save control points, curve points or even the corresponding distance map. Maybe useful, I hope. Here's a screenshot below. Click here to see the video


Fifth postcard received ! (2007/06/24, 10:00am)
I received a postcard today from Cambridge/UK, as well as a donation for CImg, by the same person. Thank you so much Alexandre ! This is very nice to see that some people are enjoying using CImg around the world, and do not write only for bug reports. All these postcards are displayed on the wall just behind my desk. Do not hesitate to write me, there are still a lot of free space :)


CImg 1.2.1 Released (2007/06/12, 15:03pm)
The CImg 1.2.1 package has been released. Here is the CHANGELOG :

*-----------------------------
*-----------------------------
* Changes from 1.2.0 to 1.2.1
*-----------------------------
*-----------------------------

* New features :
- Added macro 'cimg_for_spiralXY', allowing to loop over an image using a spiral-shaped trajectory.
- Added shortcut 'CTRL+O' to save object as .off file in 'CImg::display_object3d()'.
- Added operator bool() in CImg, CImgList, CImgStats, CImgDisplay to get more concise code when testing if an object is empty or not.
- Added empty state for CImgDisplay, can be tested with 'CImgDisplay::is_empty()'.
- Added '.off' file support in 'inrcast'.

* Optimizations / Modifications :
- Removed all the obsolete #define to ensure compatibility with really older versions of CImg. You can now include the file 'plugins/alias.h' to get these #define back.
- Added functionalities and debugged 'CImg::save_off()' and 'CImg::load_off()'.

* Bug corrections :
- Corrected illumination bug in 'CImg::draw_object3d()'.
- Corrected bug in 'CImg::crop()' family functions.
- Corrected small bugs in 'CImgList' (insertion functions).
- Corrected 'CImg::load_tiff()' function.
- And many small bug corrections...

Fourth postcard received ! (2007/06/01, 10:00am)
I received a postcard today from Brighton/UK. Thank you Hugo for your postcard !


CImg 1.2.0 Released (2007/04/18, 15:36pm)
The CImg 1.2.0 package has been released. Here is the CHANGELOG :

*-----------------------------
*-----------------------------
* Changes from 1.1.9 to 1.2.0
*-----------------------------
*-----------------------------

* New features :
- Added function 'CImg::draw_grid()' that draws a grid on the instance image
(useful when combined with CImg::draw_axis and CImg::draw_graph).
- Added multi-threading support in GREYCstoration plugin and command line version.
- Added support for GraphicsMagick conversion tools (http://www.graphicsmagick.org).
- Added plugin 'integral_line.h' that define functions to track integral lines in images.
- Added CTRL+key combinations in 'CImg::display_object3d' and 'CImg::feature_selection()' :
- CTRL+S : Save snapshot.
- CTRL+D : Double window resolution.
- CTRL+C : Divide window resolution.
- CTRL+F : Fullscreen mode.
- Added new normalization mode=3, now set by default when using CImgDisplay. Try to adapt
the display normalization to the image type.
- Added new example 'edge_explorer.cpp' (thanks to Orges Leka).
- Added new example 'greycstoration4gimp.cpp' (which is a GREYCstoration plugin for the Gimp, thanks
to Grzegorz Szwoch)
- Added functions 'CImg::[get]_round()' that round values of an image.
- Added function 'CImg::draw_line()' able to draw joined set of segments.
- Added interpolation_type=-1 for 'CImg::resize()' corresponding to raw memory resizing, without interpolation.
- Added function 'CImg::permute_axes()' that can be used to swap order of image axes (useful for converting ...RRRRRRGGGGGBBBBB... to ...RGBRGBRGBRGB....)
- Added support for NIFTI files (extension '.nii') added in 'CImg::load_analyze()'.
- Added function 'CImg::[get_]displacement_field()' that can estimate displacement field between two images.
- Added default constructor for the 'CImgDisplay' class, which creates a window initially in the 'closed' state.
- Added directory 'compilation/unix_debian_package' for easy construction of .deb package for CImg.
- Added new search parth to find 'medcon' on Windows.

* Optimizations / Modifications :
- Renamed all '*_convert' functions to '*_imagemagick'.
- Fonction CImg::draw_object3d() has been slightly optimized (light computation for outside primitives is not done anymore).
- Small changes in cimg:: traits.
- Removed 'precision' arguments in 'CImg::draw_axis()'.
- The use of non in-place arithmetical operators is now possible in plug-ins.

* Bug corrections :
- Versions of 'CImg::load_tiff()' and 'CImg::save_tiff()' that use libtiff has been debugged and improved.
- fread() and fwrite() has been recoded to handle the Windows file size limit of 64Mb over network (this is a Windows bug !).
- GREYCstoration plugin has been modified to better deal with 16 and 32bits images.
- And many other small bug corrections....

New way of installing CImg for Debian-based Unix distributions (2007/03/26, 10:00am)
Many thanks to François-Xavier Dupé, PhD candidate in the IMAGE team of the GREYC lab : he provided a simple script that can be used to generate a .deb package file from the CImg package. CImg is now very simple to install on such systems thanks to its .deb package. Very nice !

Third postcard received ! (2007/03/26, 10:00am)
I received a postcard today from Honolulu, telling me that someone is using CImg and GREYCstoration in paradise. Very nice for starting a Monday morning ! Thank you Mike for your postcard, I really appreciate ! Surprisingly, the three postcards I received so far all come from sunny places...

Thank again !
David.


CImg 1.1.9 Released (2007/03/05, 19:12pm)
The CImg 1.1.9 package has been released. This is a minor release that should be transparent for the CImg users. You can go to the Download page to get the latest 1.1.9 package.

Here is the CHANGELOG :
*-----------------------------
*-----------------------------
* Changes from 1.1.8 to 1.1.9
*-----------------------------
*-----------------------------

* New features :
- Added functions 'CImg::sharpen()' and 'CImg::get_sharpen()' that can enhance contrast in images, using nonlinear 2D/3D multi-valued shock filters.
- Added function 'CImg::contains()' and 'CImgList::contains()' that can test if a pixel is present in an image.
- Added new demo 'CImg-breakout' in 'examples/CImg_demo.cpp' (Arkanoid-style game in 64 lines of code!).
- Functions 'CImgDisplay::hide_mouse()' and 'CImgDisplay::show_mouse()' have been added, allowing to hide/show the cursor when it is over a display window.
- Functions 'CImg::[get_]structure_tensorXY[Z]()' has been added, allowing to compute the 2D or 3D structure tensor field from an image.
- Function 'CImgDisplay::set_mouse()' is now working on Windows.
- Added load/save functions to deal directly with std::FILE structures.
- Added members 'CImgDisplay::keys[256]' and 'CImgDisplay::buttons[256]' allowing to get the latest 256 keys or mouse buttons modifications done on the display window.
- Added function 'CImgDisplay::is_typed()' to test if a certain combination of key has been typed on the display window.
- Added keyboard shortcut 'CTRL+S' in 'CImg::display_object3d()' to be able to save snapshot of current 3d view.

* Optimizations / Modifications :
- Recoded the greycstoration plug-in as the file 'plugins/greycstoration.h'. The command line version 'examples/greycstoration.cpp' has been greatly improved, including tiled-mode and less memory consumption.
The use of GREYCstoration is now more easy, the code is more factorized.

* Bug corrections :
- Plugin 'plugins/cimgmatlab.h' has been corrected.

CImg 1.1.8 Released (2007/01/26, 11:06am)
The CImg 1.1.8 package has been released. I guess this is a more bug-free version than the 1.1.7. You can go to the Download page to get the latest 1.1.8 package.

Here is the CHANGELOG :
*-----------------------------
*-----------------------------
* Changes from 1.1.7 to 1.1.8
*-----------------------------
*-----------------------------

* New features :
- Added conditional use of the FFTW3 library (http://www.fftw.org) allowing more flexibility and speed on DFT computation, when used.
- Added new macro 'cimg_help()', displays arbitrary user-defined messages when program is invoked with the option '-h' or '--help'.
- Added new macro 'cimglist_apply()' allowing to apply a single function to all members of a list : Ex: cimglist_apply(list,blur)(3.0f);
- Added functions 'CImg::resize_object3d()', 'CImgList::resize_object3d()', 'CImg::get_resize_object3d()' and 'CImgList::get_resize_object3d()' to ease resizing and centering 3d objects.
- Added function 'CImgDisplay::set_mouse()' to set the mouse pointer coordinates (X11 only).
- Added functions 'CImg::atan()', 'CImg::acos()', 'CImg::asin()' and their get_* counterparts.

* Optimizations / Modifications :
- 'cimg_debug' has new value signification. Can now choose between displaying error message on the console or on modal windows, even when 'cimg_display_type' is not 0.
- Updated CImg presentation slides in 'documentation/slides_cimg.pdf', more complete now.
- Added new directories in path search for 'convert' and 'medcon' and 'temporary path'. 'convert' or 'medcon' found in the current directory './' now override the default ones.
- Added safer support for Windows 64bits.
- Improved version of 'cimg::info()' for debugging facilities. Now displays almost every important library variables and parameters.
- Static version of CImg::sequence() now return a column vector instead of a line.
- Slightly changed the tracking algorithm and few other things in 'examples/dtmri_view.cpp', allowing more precision in the fiber computation.
- Modified the 'CImg::feature_selection()' function : replaced the moving hatch by a static one, less fun but also less time consuming. One small selection bug for 3D volumes has been also corrected.
- Corrected line routine for 64bits architectures.
- Replaced 'CImg::scroll()' by 'CImg::translate()'.
- Replaced all 'cimg_map' by more coherent names based on 'cimg_for_*'. Same for 'cimglist_map'.
Compatibility with previous versions of CImg is ensured if 'cimg_strict' is not defined.
- Recoded functions to retrieve parts of the images : get_channel(), get_slice(), ...
- Improved the cimg::system() function.
- Added some tests and display extra warnings when saving images with wrong formats.

* Bug corrections :
- Corrected small bug in 'CImg<>::blur_anisotropic()', 'examples/greycstoration.cpp' and 'plugins/greycstoration4integration.h'.
- And lot of minor bug corrections and optimizations .....


First donator ! (2007/01/22, 04:37pm)
I really would like to thank the anonymous user that donated some money to the CImg Library. I don't know who you are, but you have to know that your are the very first one ! I appreciate this attention.

Of course, I also thank all other people participating to CImg by reporting bugs, sending postcards (2 received so far !) and helping developing new piece of code.
I hope the CImg Library will be alive for a long long time. Next step : the 1.1.8 release, integrating cool new features and improving stability.

Cheers !
David.

CImg 1.1.7 Released (2006/11/06, 03:15pm)
The CImg 1.1.7 package has been released. It adds cool new features and bug corrections, and proposes more elaborated use of template objects. You can go to the Download page to get the latest 1.1.7 package.

Here is the CHANGELOG :
*-----------------------------
*-----------------------------
* Changes from 1.1.6 to 1.1.7
*-----------------------------
*-----------------------------

* New features :
- Added 'operator<<()' and 'operator>>()' for bit shift operations on all images pixels.
- Added most of mathematical operators in the 'CImgList' class.
- Added new demo 'Image Waves' in 'examples/CImg_demo.cpp'.
- Added mouse wheel support on Windows.

* Optimizations / Modifications :
- Renamed class 'CImgl' into 'CImgList', also renamed macro 'cimgl_map' to 'cimglist_map'.
Backward compatibility is assured in 1.1.7 version, but think about replacing the old names
by the new ones for future CImg versions.
- Removed 'operator<<()' which appended an image to another one
- Recoded lot of non in-place mathematical operators to avoid numerical truncations.
It may have a great influence on your code. For instance writting '0.5+img' will result in a CImg image, even if 'img' was a CImg.
- Recoded most of 'CImg::get_resize()' function : linear interpolation performs now really faster, and an additional parameter allows to select between different conditions for border values.
- Recoded 'CImg::draw_line()' so that it now uses a classical Bresenham algorithm, avoiding rounding errors.

* Bug corrections :
- Corrected some functions that did not performed correctly on shared images.
- Corrected small bug in 'plugins/primitives3d.h' in function 'CImg::sphere()'.
- Corrected 'CImg::feature_selection()' when displaying 'CImg' images.
- Corrected 'CImg::load_cimg()' : is now able to load bool images.
- And lot of minor bug corrections and optimizations .....

CImg 1.1.7 in progress... (2006/10/24, 10:21am)
Preparing the next CImg release 1.1.7, I've added a new small and cool effect in the example file examples/CImg_demo.cpp. It roughly applies the wave equation on a height map on which a color image is mapped. This height map is deforming itself according to falling particles, and all is displayed as a 3D gouraud rotating object.
But the best of all, is that all fits in about 60 lines of code !

Here's a screenshot below, click on the image to see the video :


Call for links (2006/10/05, 10:32am)
I'm planning to create a 'Links' page on the CImg web site, that will propose a list of links to projects that use the CImg Library in their source code. If you are concerned and interested to appear in this page, please send me an e-mail, or post a message in the CImg forum. Thanks for your participation.

CImg 1.1.6 released (2006/09/21, 04:32pm)
Minor release, but fixes some bugs.

CImg 1.1.5 released (2006/07/19, 09:53am)
Following a traditional two-month release period, I'm happy to announce the release of the CImg 1.1.5 package.
There are some important changes in the API, basically, it converges to something clear and coherent.
The changelog is :

*-----------------------------
*-----------------------------
* Changes from 1.1.4 to 1.1.5
*-----------------------------
*-----------------------------

* New features :
- Added Poisson noise capability in CImg::noise() (This patch has been proposed by Jerome Boulanger)
- Added wheel mouse support in 'CImgDisplay', now used in 'CImg<>::feature_selection()' to go through slices of 3D volumes (unfortunately for X11 systems only).
- Added function 'CImgDisplay::toggle_fullscreen()' to allow easy and dynamic fullscreen switching of a display.
- Added screen resolution switching capabilities when using the Xrandr extension, under X11 (#define cimg_use_xrandr).
- Added support for ImageMagick++ built-in library (parts of the patch proposed by Christoph Hormann).
- And lot of small functions to ease the life...

* Optimizations / Modifications :
- CeCiLL-C license now applies for the file 'CImg.h'. This license (close to the LGPL one) is more adapted for library components as CImg. The examples stay in previous CeCiLL license (close to the GPL one).
- Recoded 'CImg::draw_axe?()' (where ? can be 'X','Y' or 'XY') so that it can now be used to draw non-linear values along axes (for instance logarithmic-varying labels).
- Attribute 'force' has been removed in 'CImgDisplay::resize()'.
- Recoded most constructors and assign functions in CImg and CImgl.
- Recoded most of the CImgDisplay class to allow more flexibility and refreshing speed.
- Renamed 'CImgDisplay::title()' to 'CImgDisplay::set_title()'. 'CImgDisplay::title' is now a class variable that stores the current title of the display window.
- 'CImgDisplay::closed', 'CImgDisplay::resized', 'CImgDisplay::fullscreen' and 'CImgDisplay::moved' have been renamed to 'CImgDisplay::is_closed', 'CImgDisplay::is_resized', 'CImgDisplay::is_fullscreen' and 'CImgDisplay::is_moved', for more coherent variable names.
- 'CImg::display_object3d()' : can now specify an input pose matrix, as well as get the output pose matrix, after the user rotated the object. Also, this function has been optimized.

* Bug corrections :
- Corrected sorting bug in 'CImg::symmetric_eigen()' and 'CImg::SVD()'
- When using shared memory images, some 'CImg::get_*()' methods returned a shared memory image too.
- And lot of minor bug corrections and optimizations .....

Previous News (2006/07/19, 09:53am)
The system for posting news has changed, and you can see old news by going there.

Support This Project