[gdal-dev] Help with idiomatic GDAL solution for raster algebra benchmark

Mateusz Loskot mateusz at loskot.net
Thu Jun 14 16:13:26 PDT 2018


On 14 June 2018 at 18:47, Alex HighViz <alexhighviz at hotmail.com> wrote:
> Would you by any chance be able (and willing) to conjure up a simple example of "OUT = 3 * A + B * C" using Boost.GIL?

Quick update: out of the box, GIL provides related algorithm that
accepts one or two sources: transform_pixels
Here is example on channel-wise pixel addition:

How to combine images with boost gil?
https://stackoverflow.com/a/47623314/151641

The transform_pixels could be extended, using the binary
channel_multiply internally, etc.

Best regards,
-- 
Mateusz Loskot, http://mateusz.loskot.net


More information about the gdal-dev mailing list