30 KiB
Release Notes
All notable changes to Boost.GIL project will be documented in this file. The format is based on Keep a Changelog.
[1.86.0] - 2024-08-14
Added
- Added
tell()anderror()functions toistream_deviceandostream_deviceclasses (PR #747).
Changed
- Don't ignore custom color converter in
color_converted_viewfunction (PR #726). - Added workaround for conflict with
min()andmax()macros on WinAPI (PR #745). - The use of
boost::filesystemin GIL is now configurable in CMake via optionBOOST_GIL_USE_BOOST_FILESYSTEM(PR #743).
Fixed
- Fixed convolution in
convolve_2d(PR #723) - Normalize Gaussian 2D kernel to avoid darkening (PR #725)
- Wrong buffer size in path string conversion functions for
std::wstringis fixed, avoiding buffer overflows when using I/O-related functions withstd::wstringpaths (PR #746).
Acknowledgements
Christoph Gringmuth, Christopher Kormanyos, nicolacandussi, Dirk Stolle, Olzhas Zhumabek
[1.80.0] - 2022-08-10
NOTICE: We are planning BREAKING switch to C++17 as minimum required C++ language version in one or two releases after Boost 1.80 (Discussion #676)
Added
- GSoC 2020: Added Perona-Malik anisotropic diffusion algorithm [PR #500)
- GSoC 2020: Added histogram class and related functionality (PR #499)
- GSoC 2020: Added histogram equalization feature (PR #514)
- GSoC 2020: Added histogram matching algorithm (PR #515)
- GSoC 2020: Added ability to stack images either horizontally (
hstack) or vertically (vstack) (PR #506) - GSoC 2020: Added adaptive histogram equalization algorithm (PR #516)
- GSoC 2020: Added Standard Hough Transform and circle rasterization (PR #512)
- GSoC 2020: Added Bresenham's algorithm for line rasterization (PR #512)
- GSoC 2021: Added rotation of image by arbitrary angle around its center (PR #565)
- GSoC 2021: Added rasterization support for ellipse based on "An Efficient Ellipse-Drawing Algorithm" by Jerry Van Aken (PR #585)
- Added
imageconstructor from compatible view (PR #520) - Added inverse function for affine
matrix3x2(PR #527) - Added standard morphological transformations (PR #541)
- Added
for_each_pixeloverload forany_image(PR #648) - Added C++17 polymorphic memory resource typedefs for
imageclass (PR #529)
Changed
- BREAKING: The required minimum C++ version is changed from from C++11 to C++14. Currently, large parts of GIL still compile with a C++11 compiler. However, there is no guarantee that it stays that way, and any compilers that do not support at least C++14 are considered unsupported as of now.
- BREAKING:
any_color_converted_view()is deprecated and will be removed in the next release. Usecolor_converted_view()instead, which provides the same feature. - BREAKING:
apply_operationforany_imageis deprecated and will be removed in the next release. Usevariant2::visitinstead, which provides the same feature. (PR #656) - documentation: Display that GIL is a header-only library
- Moved numeric extension to core (PR #573)
- Added support for C++17's
<filesystem>(PR #636) The availability of thestd::filesystemis detected automatically, unless theBOOST_GIL_IO_USE_BOOST_FILESYSTEMmacro is defined that forces the preference of the Boost.Filesystem. - Renamed
pixel_multiply_ttopixel_multiplies_tandpixel_divide_ttopixel_divides_t(PR #655) - Renamed
io/dynamic_io_new.hpptoio/detail/dynamic.hpp(PR #653) - Moved function
construct_matchedintoboost::gil::detailnamespace as it was only used by other implementation details (PR #653) - Made
packed_pixeltrivially copyable and assignable (PR #679) - Replace deprecated libtiff v4.3 typedefs with C99 fixed-size integers (#685)
Removed
Fixed
- Fixed conversion from RGB to HSL (PR #505)
- Fixed conversion from RGB to signed CMYK (PR #522)
- Removed unnecessary numeric cast in hsv.hpp (PR #530)
- Fixed default constructor for
homogeneous_color_basefor reference pixel elements (PR #542) - Fixed returning reference to local temporary object in
subchroma_image_view(PR #556) - Added missing header guards in diffusion.hpp (PR #568)
- Fixed
any_image_view<>::const_t(PR #526) - Fixed C++20 incompatibilities in I/O extensions (PR #617)
- Ensured all examples build without errors (PR #628)
- Fixed
convolve_2dfor images withfloat32_tchannel model (PR #577) - Fixed
for_each_pixelfor non-1d iterable views (PR #621) - Fixed:
is_equal_to_sixteenin PNG I/O was less-than test (PR #650) - Re-allow
devicen_twith two components (PR #654) It was unintentionally removed in Boost 1.72 - Fixed memory leak in
imageclass for empty dimensions (PR #649)
Acknowledgements
Cypre55, Samuel Debionne, Mike-Devel, Edward Diener, Peter Dimov, Omar Emara, Dhruva Gole, Nicolas Herry, Eugene K, Avinal Kumar, Gaurav Kumar, Marco Langer, Pranam Lashkari, Mateusz Łoskot, Giovanni Mascellani, Debabrata Mandal, Gopi Krishna Menon, René Ferdinand Rivera Morell, Felix Morgner, Harshit Pant, Paul92, André Schröder, Scramjet911, Siddharth, Dirk Stolle, Prathamesh Tagore, theroyn, Olzhas Zhumabek
[1.75.0] - 2020-12-09
BREAKING: In next release, we are going to drop support for GCC 5. We may also change the required minimum C++ version from C++11 to C++14.
[1.74.0] - 2020-08-12
Added
- Added new constructor initializing
any_imagefrom r-value reference to any image (PR #486) - Implemented mechanism to reverse
kernel_2d(PR #489)
Changed
- BREAKING: Replace Boost.Variant with Boost.Variant2 (PR #474) which completes removal on uses of Boost.MPL (missing from Boost 1.72.0 change added PR #274).
- Use perfect forwarding from apply_operation to visit (PR #491)
Removed
- BREAKING: Removed dependency on Boost.Variant
Fixed
- Fixed invalid conversion from RGB8 to CMYK32 due to overflow (PR #470)
- Fixed
imageconstructor from other image (PR #477) - Fixed error
plane_view_tis not a class or namespace name (PR #481) - Fixed
interleaved_viewfactory usingpoint<std::ptrdiff_t>for dimension (PR #487) - Fixed documentation replacing uses MPL with MP11 in tutorial (PR #494)
- Fixed missing header in
numeric/kernel.hppto make it self-contained (PR #502)
Acknowledgements
Samuel Debionne, Pranam Lashkari, Mateusz Loskot, Debabrata Mandal
[1.73.0] - 2020-04-22
Added
- Added move constructor and move assignment operator to
imageclass (PR #457). - New member function
size()inany_image_viewclass (PR #456). - Numerous new test cases for existing features.
Changed
- Replace Boost.Test with Boost.LightweightTest as the only test framework used in GIL (PR #459 and PR #464). This also restructured the
test/extension/io/sub-tree and targets in relatedJamfile-s. - Removed remaining uses of Boost.MPL (PR #441.
- Renamed all macros using
BOOST_GIL_prefix (PR #411). - Renamed all CMake configuration options using
BOOST_GIL_prefix (PR #419).
Removed
- Removed
extension/dynamic_image/reduce.hppas unused and possibly unfinished (PR #466). An implementation attempt of techniques described in the paper Efficient Run-Time Dispatching in Generic Programming with Minimal Code Bloat by Lubomir Bourdev, Jaakko Jarvi. - Removed direct dependency on Boost.MPL, Boost.System and Boost.Test.
- Started removing public macros for compile-time configuration of I/O extension tests, i.e.
BOOST_GIL_IO_TEST_ALLOW_READING_IMAGESandBOOST_GIL_IO_TEST_ALLOW_WRITING_IMAGES. Instead, if a test target is built, it builds all its test cases unconditionally.
Fixed
- Avoid
longjmpinteraction during destruction of I/O extension objects (PR #433). - Fixed missing alignment default value in constructor of
imageclass (PR #429). - Fixed segmentation fault when reading corrupted PNG file (PR #414).
- Fixed illegal initialization of return values in the old IOv1 interface of I/O extension (PR #409).
Acknowledgements
Samuel Debionne, Thiago Henrique Hüpner, Pranam Lashkari, Mateusz Loskot, Debabrata Mandal, Olzhas Zhumabek
[1.72.0] - 2019-12-11
Added
- GSoC 2019: Lanczos resampling for image down scaling (PR #309).
- GSoC 2019: Methods for binary thresholding, inverted binary thresholding and truncation thresholding (PR #313).
- GSoC 2019: Otsu thresholding method (PR #314).
- GSoC 2019: Adaptive thresholding using mean of the neighbourhood area (PR #341).
- GSoC 2019: Adaptive thresholding using gaussian-weighted sum of the neighbourhood area (PR #379).
- GSoC 2019: Harris response calculation (corner detector without non-maximum filtering) (PR #350).
- GSoC 2019: Hessian corner detector (PR #364).
- GSoC 2019: Types for defining 2D kernel,
kernel_2dandkernel_2d_fixed, in Numeric extension (PR #361). - GSoC 2019: Implementation of 2D convolution as new function
convolve_2d(PR #367). - GSoC 2019: Box filtering using the average filter (PR #383).
- GSoC 2019: Blur function based on normalized mean filter (PR #383).
- GSoC 2019: Sobel and Scharr operators (PR #392).
- GSoC 2019: Median filter to remove noise from image (PR #393).
- Continued adding new test cases and significantly improved overall test coverage.
- Documented purpose of
cached_location_t(PR #287). - Function
convolve_1din Numeric extension for convenient use ofconvolve_rowsandconvolve_cols(PR #347 and PR #367). - Function
extend_boundaryin Numeric extension to perform image boundary extension (PR #386). - Project release notes maintained in Markdown file
RELEASES.md(PR #404).
Changed
- Move all tests, core features and extensions, inside
test/directory (PR #302).
Removed
- BREAKING: Replace Boost.MPL with Boost.MP11 (PR #274).
- Removed use of Boost.TypeTraits (PR #274).
- Dropped support for GCC <= 4.8 (PR #296).
- Remove
include/boost/gil/version.hppfile as unused (PR #403).
Fixed
- Undetermined value of default-initialized channel and pixel objects (PR #273).
- Undefined behaviour due to
std::is_trivially_default_constructiblespecializations (PR #284). - Crash when reading PNG files with an invalid header (PR #385).
- Applied the Rule of Three for numerous types.
- Removed uses of deprecated implicit definition of defaulted copy assignment operator or copy constructor.
Acknowledgements
Samuel Debionne, Tyler Deuty, Jean-David Gadina, Jan Houska, Pranam Lashkari, Mateusz Loskot, Stefan Seefeld, Miral Shah, Olzhas Zhumabek
[1.70.0] - 2019-04-12
Added
- Numerous new test cases for existing features.
- C++11 requirements checks to Boost.Build Jamfiles (PR #260).
Changed
- Split single
boost/gil/concepts.hppinto multipleboost/gil/concepts/*.hppheaders (PR #169). - Removed uses of
boost::enable_ifwithstd::enable_if(PR #215). - Replaced own implementation of variant type used for
any_imagewith Boost.Variant (PR #231). - Moved original all-in-one test suite to
test/legacy/(PR #239). - Continued C++ modernization of the library source code.
Removed
- Remove uses of deprecated
std::unary_functionandstd::binary_function(PR #191). - Removed uses of Boost.StaticAssert (PR #207).
- Removed uses of
BOOST_STATIC_CONSTANT(PR #211). - Removed uses of Boost.Function (PR #213), Boost.Bind and Boost.Lambda (PR #212).
Fixed
- Fixed access to non-type results of metafunctions calls using
::valueconvention (PR #262).
Acknowledgements
Samuel Debionne, Mateusz Loskot, Nikita Kniazev, Stefan Seefeld
[1.69.0] - 2018-12-12
Changed
- Refactored library includes to
#include <boost/gil/...>structure (PR #145).
Removed
- Header
include/boost/gil_all.hppfile as deprecated (PR #145). - Header
include/boost/gil_concepts.hppfile as deprecated (PR #145). - Header
include/boost/gil_config.hppfile as unnecessary (PR #144).
Fixed
- Fixed
point<T>divide and multiply to not to hardcode result aspoint<double>(PR #157). - Fixed conflict between
std::fill_nandboost::range::fill_n(PR #152). - Fixed issue with re-assignment of functor from
for_each_pixel(PR #139). - Fixed missing template keyword prior to dependent name
axis_iterator(PR #129). - Fixed loading of grayscale PNG with alpha channel (tRNS chunks) (PR #118).
Acknowledgements
Mateusz Loskot, Marcel Metz, Stefan Seefeld
[1.68.0] - 2018-08-09
Added
- BREAKING: The library now requires a C++11-compliant compiler.
- New top-level all-in-one
include/boost/gil.hppheader. - Added Toolbox extension following the review and acceptance into Boost.
Changed
- The I/O extensions have been entirely rewritten as I/O v2, reviewed and accepted into Boost.
- Documentation has been reformatted and updated.
Removed
- The existing I/O v1 extension has been replaced with I/O v2.
Acknowledgements
Niklas Angare, Jan Beich, Edward Diener, Peter Dimov, Daniela Engert, Bill Gallafent, Christian Henning, Daniel James, Nikita Kniazev, Mateusz Loskot, Marcel Metz, Martin Osborne, Antony Polukhin, Stefan Seefeld
[1.53.0] - 2013-02-04
Fixed
- Fixed self-assignment warnings (Trac #4919).
Acknowledgements
Lubomir Bourdev, Marshall Clow, Beman Dawes, Daniela Engert, Bill Gallafent, Doug Gregor, Boris Gubenko, Christian Henning, Michael Jackson, Daniel James, Hailin Jin, Nikita Kniazev, Mateusz Loskot, John Maddock, Marcel Metz, Antony Polukhin, Stefan Seefeld
[1.35.0] - 2008-03-29
Added
- First Boost release of Generic Image Library developed by Lubomir Bourdev and Hailin Jin following the review and acceptance into Boost.
Acknowledgements
Lubomir Bourdev, Beman Dawes, Hailin Jin, John Maddock and all the reviewers of the library.
Pre-Boost History of the Generic Image Library (GIL) by Adobe
The log of changes prior the first release of GIL as part of Boost was collected from https://stlab.adobe.com/gil/news.html site and linked PDF documents with detailed changes.
[2.1.1] - 2007-09-15
Changed
- Swapped template arguments for
color_element_type,color_element_reference_typeandcolor_element_const_reference_typeto takeColorBasefirst for consistency with the other similar metafunctions.
Fixed
- Minor bugs fixed.
[2.1.0] - 2007-06-17
Added
- Added support for accessing raw memory from image views by getting raw pointer to the beginning of the memory
associated with a homogeneous image view using new functions
interleaved_view_get_raw_dataorplanar_view_get_raw_data. - Support for non-byte-aligned images (e.g. 6-bit RGB222, or 1-bit grayscale).
To support bit distance, we are using the same classes that were providing byte distance (
byte_addressible_step_iterator,byte_addressible_2d_locator, etc.) except that now they operate on memory units instead of bytes. A memory unit can currently be either a byte or a bit. - New
byte_to_memunitfunction required by theMemoryBasedIteratorConcept, which specifies the number of bits per memory unit (either 1 or 8). - New classes for references and iterators over bit-aligned pixels:
bit_aligned_pixel_reference,bit_aligned_pixel_iterator. The memory unit of bit aligned pixel iterators is a bit, i.e.byte_to_unit<bit_aligned_pixel_iterator<T> >::value == 8. - The
value_typeof a bit-aligned image is apacked_pixel(new name, see below). A packed pixel is a pixel that is byte-aligned but whose channels may not be byte aligned. There is a strong analogy with the way interleaved and planar images are implemented, withpacked_pixelcorresponding topixel,bit_aligned_pixel_referencecorresponding toplanar_pixel_referenceandbit_aligned_pixel_iteratorcorresponding toplanar_pixel_iterator. - New metafunction
bit_aligned_image_typefor constructing bit-aligned images. A bit-aligned image is an image whose pixels may not be byte-aligned (such as an RGB222 image). - New metafunction
pixel_value_typefor constructing homogenous pixel value from elements. - New metafunction
packed_pixel_typefor constructing homogenous packed pixel from elements. - New metafunction
packed_image_typefor constructing packed images with packed pixel as itsvalue_type.
Changed
- Renamed
heterogeneous_packed_pixeltopacked_pixel. - Renamed
ByteAdvancableIteratorConcepttoMemoryBasedIteratorConcept. - Renamed
byte_addressable_{step_iterator,2d_locator}tomemory_based_{step_iterator,2d_locator}. - Renamed
byte_{advance,advanced,distance,step}tomemunit_{advance,advanced,distance,step}, - Renamed
locator::row_bytes()tolocator::row_size()andlocator::pix_bytestep()tolocator::pixel_size(). - Simplified
packed_channel_referenceandpacked_dynamic_channel_referenceby removing theBitFieldparameter (it is now computed automatically). - Improved
channel_convert- it is faster by switching to floating-point math only if necessary.
Fixed
- Fixed a roundoff bug in the conversion (related to floating-point math switching).
- Fixed histogram regression tests.
[2.0.x] - 2007-03-27
Changed
- Minor bug fixes.
- Regression test improvements.
Removed
- Removed any external dependencies from the regression tests.
[2.0.0] - 2007-03-08
Added
- Further Boost integration:
- Directories follow the Boost convention.
- Different models are usually now split in separate files.
- Renamed some files for better consistency.
- Renamed classes, functions and template arguments with longer but clearer and more consistent names.
- New
deprecated.hpp- a file that maps many of the deprecated names to current ones. Including it will help porting your code to GIL 2.0. After porting to GIL 2.0, however, make sure that your code works when this file is not included. - New
swapfunction required for reference proxies, since thestd::swapdefault does not do the right thing. - Metafunctions
iterator_type_from_pixelandview_type_from_pixelto allow creating standard iterators and views associated with a pixel type. - New
scoped_channel_value, a channel adaptor that changes the operational range of a channel.bits32fis defined as afloatwith range0.0to1.0. - New
packed_channel_value,packed_channel_referenceandpacked_dynamic_channel_referencewhich model channels operating on bit ranges. - New
heterogeneous_packed_pixel, a model of a pixel whose channels are bit ranges (e.g. 16-bit RGB pixel in the 565 format). - Metafunctions to get the k-th element of a color base (or its reference):
kth_semantic_element_type,kth_semantic_element_reference_type,kth_semantic_element_const_reference_type. - Metafunctions to operate on pixel iterator:
const_iterator_type,iterator_is_mutable,is_iterator_adaptor. - New image view algorithms
uninitialized_fill_pixels,uninitialized_copy_pixelsand methodis_1d_traversable. - Added support for creating images with a new value to fill.
Changed
- Updated the design guide and tutorial, updated syntax of concepts to the latest concepts proposal.
- In
image,image_view,any_image,any_image_view: There are no longer global functionsget_width(),get_height(),get_dimensions(),num_channels(). Use methodswidth(),height(),dimensions()instead. - In models of pixel, pixel iterator, pixel locator, image view and image:
There used to be different ways of getting to a pixel, channel, color space, etc. of an image view,
pixel, locator, iterator and image (e.g. traits, member typedefs).
Now all pixel-based GIL constructs (pixels, pixel iterators, locators, image views and images) model
PixelBasedConcept, which means they provide the following metafunctions:color_space_type,channel_mapping_type,is_planar,num_channelsand for homogeneous constructs we also have:channel_type. To get the pixel type or pixel reference/const reference type of an image, image view, locator and pixel, use member typedefsvalue_type,referenceandconst_reference. - In
locator,image,image_view,any_imageandany_image_view: Removeddynamic_x_step_t,dynamic_y_step_t,dynamic_xy_step_tanddynamic_xy_step_transposed_tas member typedefs of locators and image views. Instead, there are separate conceptsHasDynamicXStepTypeConcept,HasDynamicYStepTypeConcept,HasTransposedTypeConceptwhich all GIL-provided locators, views and images model. Those concepts require a metafunction to get the corresponding type. Analogously, all GIL pixel iterators modelHasDynamicXStepTypeConcept. - In channel, the min and max value is now part of the channel traits.
For all built-in types the channel range equals the physical range (as determined by
std::numeric_traits<T>::max()). - Provide
channel_convertsupport to convert between any of the GIL-provided channel types. The operation is also consistent - conversion is done as a linear mapping that maps the min/max to the min/max. - In pixel, major redesign of pixel-level constructs.
Renamed
color_basetohomogeneous_color_baseand defined it once, not for each color space. The color base is a first-class concept and allows to model any bundle of color elements. Work needed to define a new color space has been simplified a lot. All former pixel-level algorithms and accessors now operate on color bases. The elements of a color base can be accessed by physical or semantic index or by name (channel names can no longer be accessed as members of the pixel e.g.my_pixel.gray = 0), useget_colorinstead). - In color base, algorithms now can take heterogeneous pixels (i.e. pixels each channel of which may have a different type).
The
color_convertcan operate on heterogeneous pixels with the exception of to/from RGBA. - In image, the class
imageis no longer templated over the image view. It is now templated over pixel value. - In dynamic image, instead of removed
cross_vector_image_typesandcross_vector_image_view_types, create MPL vector to enumerate types. - Renamed algorithms
{copy,equal,fill,for_each,generate,max,min,transform}_channelstostatic_{copy,equal,fill,for_each,generate,max,min,transform}. - Rename metafunctions
channeltoat_c,semantic_channeltosemantic_at_c,get_nth_channeltodynamic_at_c. - Renamed
planar_{ptr,ref}toplanar_pixel_{iterator,reference}. - Renamed
PixelConcepttoHomogeneousPixelConcept. - Renamed
HeterogeneousPixelConcepttoPixelConcept. - Renamed
pixel_image_iteratortoiterator_from_2d. - Renamed
is_contiguoustois_1d_traversable. - Renamed
membased_2d_locatortobyte_addressable_2d_locator. - Renamed
resize_clobber_imagetoimage::recreate.
Fixed
- Now compiles with GCC 4.1.1.
- Fixed some bugs in defining reference proxies.
Removed
- Flattened the
coredirectory as part of Boost integration. - Got rid of channel accessors from pixel types.
- Got rid of
pixel_traits. Use nested typedefsvalue_type,referenceandconst_referenceor metafunctions implementingPixelBasedConcept. - Got rid of
pixel_iterator_traits. Usestd::iterator_traits,PixelBasedConceptmetafunctions or the new metafunctions for pixel iterators. - Got rid of the ability to directly access pixels through image, only through views. The image no longer models STL's random access container concept.
- No more LAB and HSB color space, because there is no color conversion support implemented for these. New color spaces can be added with just a few lines of code.
[1.x] - 2007-01-03
Added
- Restored back the ability to assign a channel to a grayscale pixel.
Changed
- Fixed some minor issues with color converted views of dynamic images.
[1.x] - 2006-11-07
GIL accepted to Boost.
GIL's Boost review was successful and GIL will be part of the Boost libraries. It will most likely first appear in the 1.35 version of Boost. In the future our web page will continue to provide you with the latest improvements to GIL, as we have the flexibility to release more frequently than Boost.
[1.x] - 2006-10-20
Added
- New regression tests.
- Source code of usage examples is available to download from the website.
Changed
- Minor changes to GIL core.
[1.x] - 2006-10-02
Added
- First version of the Numeric extension. The extension provides some basic image processing algorithms, such as convolution and resampling.
- Introduction of pixel traits.
Changed
- Improved consistent use of MPL predicates and standardized template parameter names.
[1.x] - 2006-09-20
Added
- GIL now allows users to overload the default color conversion with one of their own.
- Section in the design guide describes how to overload default color conversion.
Changed
- Color conversion improvements.
[1.0] - 2006-08-29
Added
- Pixel dereference adaptors are introduced.
- Locator concepts/models are made more generic.
- Example of creating the Mandelbrot set is described in the tutorial.
Changed
- It is now easier to construct virtual image views.
[] - 2006-06-27
Added
- A GIL Flash presentation is posted (aka video lecture).
[] - 2006-06-14
Added
- GIL homepage goes live