Project: ArangoDB (App Definition and Development / Database)
File: RELEASES.md

All notable changes to project will be documented in this file. The format is based on . Added new constructor initializing `any_image` from r-value reference to any image () Implemented mechanism to reverse `kernel_2d` () BREAKING: Replace Boost.Variant with Boost.Variant2 () which completes removal on uses of Boost.MPL (missing from Boost 1.72.0 change added ). Use perfect forwarding from apply_operation to visit () BREAKING: Removed dependency on Boost.Variant Fixed invalid conversion from RGB8 to CMYK32 due to overflow () Fixed `image` constructor from other image () Fixed error `planeviewt` is not a class or namespace name () Fixed `interleavedview` factory using `point<std::ptrdifft>` for dimension () Fixed documentation replacing uses MPL with MP11 in tutorial () Fixed missing header in `numeric/kernel.hpp` to make it self-contained () Samuel Debionne, Pranam Lashkari, Mateusz Loskot, Debabrata Mandal Added move constructor and move assignment operator to `image` class (). New member function `size()` in `anyimageview` class (). Numerous new test cases for existing features. Replace Boost.Test with Boost.LightweightTest as the only test framework used in GIL ( and ). This also restructured the `test/extension/io/` sub-tree and targets in related `Jamfile`-s. Removed remaining uses of Boost.MPL (. Renamed all macros using `BOOSTGIL` prefix (). Renamed all CMake configuration options using `BOOSTGIL` prefix (). Removed `extension/dynamic_image/reduce.hpp` as unused and possibly unfinished (). An implementation attempt of techniques described in the paper 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. `BOOSTGILIOTESTALLOWREADINGIMAGES` and `BOOSTGILIOTESTALLOWWRITINGIMAGES`. Instead, if a test target is built, it builds all its test cases unconditionally. Avoid `longjmp` interaction during destruction of I/O extension objects (). Fixed missing alignment default value in constructor of `image` class (). Fixed segmentation fault when reading corrupted PNG file (). Fixed illegal initialization of return values in the old IOv1 interface of I/O extension (). Samuel Debionne, Thiago Henrique Hpner, Pranam Lashkari, Mateusz Loskot, Debabrata Mandal, Olzhas Zhumabek GSoC 2019: Lanczos resampling for image down scaling (). GSoC 2019: Methods for binary thresholding, inverted binary thresholding and truncation thresholding (). GSoC 2019: Otsu thresholding method (). GSoC 2019: Adaptive thresholding using mean of the neighbourhood area (). GSoC 2019: Adaptive thresholding using gaussian-weighted sum of the neighbourhood area (). GSoC 2019: Harris response calculation (corner detector without non-maximum filtering) (). GSoC 2019: Hessian corner detector (). GSoC 2019: Types for defining 2D kernel, `kernel2d` and `kernel2d_fixed`, in Numeric extension (). GSoC 2019: Implementation of 2D convolution as new function `convolve_2d` (). GSoC 2019: Box filtering using the average filter (). GSoC 2019: Blur function based on normalized mean filter (). GSoC 2019: Sobel and Scharr operators (). GSoC 2019: Median filter to remove noise from image (). Continued adding new test cases and significantly improved overall test coverage. Documented purpose of `cachedlocationt` (). Function `convolve1d` in Numeric extension for convenient use of `convolverows` and `convolve_cols` ( and ). Function `extend_boundary` in Numeric extension to perform image boundary extension (). Project release notes maintained in Markdown file `RELEASES.md` (). Move all tests, core features and extensions, inside `test/` directory (). BREAKING: Replace Boost.MPL with Boost.MP11 (). Removed use of Boost.TypeTraits (). Dropped support for GCC <= 4.8 (). Remove `include/boost/gil/version.hpp` file as unused (). Undetermined value of default-initialized channel and pixel objects (). Undefined behaviour due to `std::istriviallydefault_constructible` specializations (). Crash when reading PNG files with an invalid header (). Applied the ) for numerous

Removed uses of deprecated implicit definition of defaulted copy assignment operator or copy constructor. Samuel Debionne, Tyler Deuty, Jean-David Gadina, Jan Houska, Pranam Lashkari, Mateusz Loskot, Stefan Seefeld, Miral Shah, Olzhas Zhumabek Numerous new test cases for existing features. C++11 requirements checks to Boost.Build Jamfiles (). Split single `boost/gil/concepts.hpp` into multiple `boost/gil/concepts/*.hpp` headers (). Removed uses of `boost::enableif` with `std::enableif` (). Replaced own implementation of variant type used for `any_image` with Boost.Variant (). Moved original all-in-one test suite to `test/legacy/` (). Continued C++ modernization of the library source code. Remove uses of deprecated `std::unaryfunction` and `std::binaryfunction` (). Removed uses of Boost.StaticAssert (). Removed uses of `BOOSTSTATICCONSTANT` (). Removed uses of Boost.Function (), Boost.Bind and Boost.Lambda (). Fixed access to non-type results of metafunctions calls using `::value` convention (). Samuel Debionne, Mateusz Loskot, Nikita Kniazev, Stefan Seefeld Refactored library includes to `#include <boost/gil/...>` structure (). Header `include/boost/gil_all.hpp` file as deprecated (). Header `include/boost/gil_concepts.hpp` file as deprecated (). Header `include/boost/gil_config.hpp` file as unnecessary (). Fixed `point<T>` divide and multiply to not to hardcode result as `point<double>` (). Fixed conflict between `std::filln` and `boost::range::filln` (). Fixed issue with re-assignment of functor from `foreachpixel` (). Fixed missing template keyword prior to dependent name `axis_iterator` (). Fixed loading of grayscale PNG with alpha channel (tRNS chunks) (). Mateusz Loskot, Marcel Metz, Stefan Seefeld BREAKING: The library now requires a C++11-compliant compiler. New top-level all-in-one `include/boost/gil.hpp` header. Added Toolbox extension following the . The I/O extensions have been entirely rewritten as I/O v2, . Documentation has been reformatted and updated. The existing I/O v1 extension has been replaced with I/O v2. 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 Fixed self-assignment warnings (Trac ). 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 First Boost release of Generic Image Library developed by Lubomir Bourdev and Hailin Jin following the . Lubomir Bourdev, Beman Dawes, Hailin Jin, John Maddock and all the reviewers of the library. 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. Swapped template arguments for `colorelementtype`, `colorelementreferencetype` and `colorelementconstreference_type` to take `ColorBase` first for consistency with the other similar metafunctions. Minor bugs fixed. 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 `interleavedviewgetrawdata` or `planarviewgetrawdata`. 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 (`byteaddressiblestepiterator`, `byteaddressible2dlocator`, 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 `bytetomemunit` function required by the `MemoryBasedIteratorConcept`, which specifies the number of bits per memory unit (either 1 or 8). New classes for references and iterators over bit-aligned pixels: `bitalignedpixelreference`, `bitalignedpixeliterator`. The memory unit of bit aligned pixel iterators is a bit, i.e. `bytetounit<bitalignedpixel_iterator<T> >::value == 8`. The `valuetype` of a bit-aligned image is a `packedpixel` (new name, see below). A packed pixel is a pixel that is byte-aligned but whose channels may not be byte

There is a strong analogy with the way interleaved and planar images are implemented, with `packed_pixel` corresponding to `pixel`, `bitalignedpixelreference` corresponding to `planarpixel_reference` and `bitalignedpixeliterator` corresponding to `planarpixel_iterator`. New metafunction `bitalignedimage_type` for 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 `pixelvaluetype` for constructing homogenous pixel value from elements. New metafunction `packedpixeltype` for constructing homogenous packed pixel from elements. New metafunction `packedimagetype` for constructing packed images with packed pixel as its `value_type`. Renamed `heterogeneouspackedpixel` to `packed_pixel`. Renamed `ByteAdvancableIteratorConcept` to `MemoryBasedIteratorConcept`. Renamed `byteaddressable{stepiterator,2dlocator}` to `memorybased{stepiterator,2dlocator}`. Renamed `byte{advance,advanced,distance,step}` to `memunit{advance,advanced,distance,step}`, Renamed `locator::rowbytes()` to `locator::rowsize()` and `locator::pixbytestep()` to `locator::pixelsize()`. Simplified `packedchannelreference` and `packeddynamicchannel_reference` by removing the `BitField` parameter (it is now computed automatically). Improved `channel_convert` - it is faster by switching to floating-point math only if necessary. Fixed a roundoff bug in the conversion (related to floating-point math switching). Fixed histogram regression tests. Minor bug fixes. Regression test improvements. Removed any external dependencies from the regression tests. 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 `swap` function required for reference proxies, since the `std::swap` default does not do the right thing. Metafunctions `iteratortypefrompixel` and `viewtypefrompixel` to allow creating standard iterators and views associated with a pixel type. New `scopedchannelvalue`, a channel adaptor that changes the operational range of a channel. `bits32f` is defined as a `float` with range `0.0` to `1.0`. New `packedchannelvalue`, `packedchannelreference` and `packeddynamicchannel_reference` which model channels operating on bit ranges. New `heterogeneouspackedpixel`, 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): `kthsemanticelementtype`, `kthsemanticelementreferencetype`, `kthsemanticelementconstreferencetype`. Metafunctions to operate on pixel iterator: `constiteratortype`, `iteratorismutable`, `isiteratoradaptor`. New image view algorithms `uninitializedfillpixels`, `uninitializedcopypixels` and method `is1dtraversable`. Added support for creating images with a new value to fill. Updated the design guide and tutorial, updated syntax of concepts to the latest concepts proposal. In `image`, `imageview`, `anyimage`, `anyimageview`: There are no longer global functions `getwidth()`, `getheight()`, `getdimensions()`, `numchannels()`. Use methods `width()`, `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: `colorspacetype`, `channelmappingtype`, `isplanar`, `numchannels` and 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 typedefs `valuetype`, `reference` and `constreference`. In `locator`, `image`, `imageview`, `anyimage` and `anyimageview`: Removed `dynamicxstept`, `dynamicystept`, `dynamicxystept` and `dynamicxysteptransposed_t` as member typedefs of locators and image views. Instead, there are separate concepts `HasDynamicXStepTypeConcept`, `HasDynamicYStepTypeConcept`, `HasTransposedTypeConcept` which all GIL-provided locators, views and images model. Those concepts require a metafunction to get the corresponding type. Analogously, all GIL pixel iterators model `HasDynamicXStepTypeConcept`. In channel, the min and max value is now part of the channel

For all built-in types the channel range equals the physical range (as determined by `std::numeric_traits<T>::max()`). Provide `channel_convert` support 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 `colorbase` to `homogeneouscolor_base` and 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. `mypixel.gray = 0`), use `getcolor` instead). In color base, algorithms now can take heterogeneous pixels (i.e. pixels each channel of which may have a different type). The `color_convert` can operate on heterogeneous pixels with the exception of to/from RGBA. In image, the class `image` is no longer templated over the image view. It is now templated over pixel value. In dynamic image, instead of removed `crossvectorimagetypes` and `crossvectorimageview_types`, create MPL vector to enumerate types. Renamed algorithms `{copy,equal,fill,foreach,generate,max,min,transform}channels` to `static{copy,equal,fill,foreach,generate,max,min,transform}`. Rename metafunctions `channel` to `atc`, `semanticchannel` to `semanticatc`, `getnthchannel` to `dynamicatc`. Renamed `planar{ptr,ref}` to `planarpixel_{iterator,reference}`. Renamed `PixelConcept` to `HomogeneousPixelConcept`. Renamed `HeterogeneousPixelConcept` to `PixelConcept`. Renamed `pixelimageiterator` to `iteratorfrom2d`. Renamed `iscontiguous` to `is1d_traversable`. Renamed `membased2dlocator` to `byteaddressable2d_locator`. Renamed `resizeclobberimage` to `image::recreate`. Now compiles with GCC 4.1.1. Fixed some bugs in defining reference proxies. Flattened the `core` directory as part of Boost integration. Got rid of channel accessors from pixel types. Got rid of `pixeltraits`. Use nested typedefs `valuetype`, `reference` and `const_reference` or metafunctions implementing `PixelBasedConcept`. Got rid of `pixeliteratortraits`. Use `std::iterator_traits`, `PixelBasedConcept` metafunctions 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. Restored back the ability to assign a channel to a grayscale pixel. Fixed some minor issues with color converted views of dynamic images. 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. New regression tests. Source code of usage examples is available to download from the website. Minor changes to GIL core. First version of the Numeric extension. The extension provides some basic image processing algorithms, such as convolution and resampling. Introduction of pixel traits. Improved consistent use of MPL predicates and standardized template parameter names. 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. Color conversion improvements. Pixel dereference adaptors are introduced. Locator concepts/models are made more generic. Example of creating the Mandelbrot set is described in the tutorial. It is now easier to construct virtual image views. A GIL Flash presentation is posted (aka video lecture). GIL homepage goes live