Boost logo

Boost Users :

Subject: Re: [Boost-users] [gil] Processing huge images
From: Christian Henning (chhenning_at_[hidden])
Date: 2011-04-04 16:38:53


Hi Franz,

> To make my problem more concrete, imagine the following picture:
>
> |<---- width of the huge "virtual" image ------>|
> +---------+---------+-----------------+---------+
> | image 1 | image 2 | ...             | image N |
> |         |         |                 |         |
> |         |         |                 |         |
> +---------+---------+-----------------+---------+
>
> All the images are in different places in memory.
>
> From my point of view I would make something like a wrapper class that holds
> the separate images and supports an iterator to iterate over the huge image.
> In this case I'm not sure if I could use this wrapper class as a normal gil
> image and therefore can't use the full gil power at my wrapper class.
>
> Do you know if gil has something onboard to solve problems like this?

You can create an image view from raw data. Once you have a view you
can use all the gil goodies.

Look here:
http://stlab.adobe.com/gil/html/group___image_view_constructors.html

Does that help?

Christian


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net