|
Boost Users : |
Subject: Re: [Boost-users] [GIL] gray pixel iterator in generic algorithm
From: Lubomir Bourdev (lbourdev_at_[hidden])
Date: 2011-02-17 17:03:26
On Feb 17, 2011, at 2:01 PM, Lubomir Bourdev wrote:
> Hi Curtis,
>
> A GIL image is a container of pixels. It allocates and deallocates the pixels. As such it doesn't make sense to create a container type whose elements are constant.
> Instead of images you should try to pass to your containers image views. You can get a constant and a mutable view of a given image.
>
I meant to say, pass to your _algorithms_ image views.
> If you want a constant reference to an image, you can use "const gray_float_image_t&"
>
> Lubomir
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