Boost logo

Boost :

Subject: Re: [boost] Serialize a an image with Boost & GIL
From: Christian Henning (chhenning_at_[hidden])
Date: 2016-04-12 17:05:29


Hi,

see below:

> I have found the GIL library, but can't find how to:
>
> 1) convert raw to GIL image
>

There is a gil extension for the RAW image format in the develop branch of
boost::gil. Look here:

https://github.com/boostorg/gil/tree/develop/include/boost/gil/extension/io

It uses libraw as the encoder.

> 2) serialize the GIL image
>

That we don't have but if you're are working on RGBA 8 bit data then most
likely you can convert the gil type into an array of unsigned ints.

>
> 1) deserialize the GIL image
> 2) convert the GIL to raw image
>

Writing an raw image is not possible with the current extension.

Regards,
Christian


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk