Questions tagged [boost-gil]

The Boost Generic Image Library (Boost.GIL) is a C++ library that abstracts image representations from algorithms and allows writing code that can work on a variety of images with performance similar to hand-writing for a specific image type.

The Boost Generic Image Library (Boost.GIL) is a C++ library that abstracts image representations from algorithms and allows writing code that can work on a variety of images with performance similar to hand-writing for a specific image type.

69 questions
2
votes
1 answer

How to combine images with boost gil?

I am just getting familiar with Boost GIL (and image processing in general) and suspect that this is simple, but I haven't found the relevant documentation. I have a set of image views that I would like to combine with an arbitrary function. For…
Gregory
  • 4,147
  • 7
  • 33
  • 44
2
votes
3 answers

Should I use Boost.GIL or is it dead?

I actually like the clean approach of Boost.GIL, standardized libraries are cool and Adobe certainly put some thought in it but when comparing to libs such as OpenCV its feature set is marginal. Do you use GIL and for what purposes?
hannes
  • 966
  • 9
  • 13
2
votes
1 answer

Boost GIL image constructors

I'm currently trying to figure out how to use the Generic Image Library included in Boost. Right now, I just want to use the library to store pixel data and use the Image IO to write PNGs. I'm having trouble understanding just how to set up the…
Xzhsh
  • 2,239
  • 2
  • 22
  • 32
2
votes
1 answer

How to extract channel POD-type from a boost::gil homogeneous pixel type?

I have a class templated on , assumed to be one of boost::gil's pixel types (for now, only either gray8_pixel_t or gray16_pixel_t, and I only expect to support homogeneous pixel types e.g rgb8_pixel_t in future). The class needs to get hold…
timday
  • 24,582
  • 12
  • 83
  • 135
2
votes
1 answer

How to make Boost::GIL work with PNG & JPEG IO?

Boost::GIL has almost perfect tutorial and manual. I find it troublesome to lack guide on building and using Boost::GIL work with PNG & JPEG IO. Does anyone have experience or have successfully did that? Please kindly advise! Thanks! EDIT: Answer…
Viet
  • 17,944
  • 33
  • 103
  • 135
2
votes
1 answer

Load bitmap file (.bmp)

I noticed the boost::gil::extension::io only supports png or jpeg files.. While this is often enough I'm wondering how to load a bitmap (*.bmp) file into an image? Shouldn't this be actually easier than jpeg etc?
paul23
  • 8,799
  • 12
  • 66
  • 149
2
votes
1 answer

Boost.GIL Load Image from istream

I'm trying to load an image onto a Boost.GIL image from an std::istream. I've searched online but have yet to find a good solution. Any help would be greatly appreciated. Thanks alot
Tal Zion
  • 1,331
  • 2
  • 14
  • 23
2
votes
2 answers

How do I use boost::gil to load any typical png file

I have configured my environment so that I can load a suitably crafted .png file into an image defined like this: boost::gil::rgb8_image_t input; but how do I load a png file of any typical type (such as is generated by the GIMP, or MS…
codeshot
  • 1,183
  • 1
  • 9
  • 20
2
votes
2 answers

Override specialized template

I've been using Boost.GIL to perform some basic image processing routine. In Boost.GIL, colorspace conversion between pixels of different type is realized by template specialization of a generic convert_pixel( ) function. However, I would love to…
davideanastasia
  • 366
  • 1
  • 13
1
vote
1 answer

Boost GIL: Write an image into a memory buffer

In my application I periodically receive an 8 bit gray scale image as array of uint8_t. I need to convert it in a jpeg (or png) format and send the result to another library. Unfortunately I cannot continuously write a file on the hard drive so I…
albezanc
  • 25
  • 7
1
vote
1 answer

boost::gil::rgba8_image_t forward declaration

Tried to create a forward declaration for boost::gil::rgba8_image_t: namespace boost::gil { class rgba8_image_t; } And got this: ... error: definition of type 'rgba8_image_t' conflicts with type alias of the same name [build] class…
Sergei Krivonos
  • 4,217
  • 3
  • 39
  • 54
1
vote
1 answer

How to handle overflow in numeric pixel operations with boost::gil?

The numeric extension for boost::gil contains algorithms like this: template struct channel_plus_t : public std::binary_function { ChannelR operator()(typename…
OK.
  • 2,374
  • 2
  • 17
  • 20
1
vote
0 answers

Using PImpl Idiom and Curiously Recurring Template Pattern

I'm getting some compiling errors when creating constructors for my derived image classes while using PImpl Idiom and Curiously Recurring Template Pattern. The base class for image class implementations uses CRTP (Curiously Recurring Template…
BunRieuCua
  • 53
  • 4
1
vote
0 answers

Boost GIL Library Color Separation Issue with Blue Channel

I'm using the Boost-GIL library for some image-processing tasks. First, I color separate the image into RGB channels and perform operations on each channel. Something odd came to my notice in terms of the reversibility of the operation. The…
Pal
  • 989
  • 10
  • 23
1
vote
1 answer

How to convert a gray8_view_t to a rgb8_view_t by using boost::gil and create a rgb8_image_t object from it?

Since boost::gil does not support gray8_view_t writing for the BMP format, I want to convert gray8_view_t to rgb8_view_t. Here is what I've tried so far. auto rgb_view = boost::gil::planar_rgb_view(width, height, pixels, pixels, pixels,…
BunRieuCua
  • 53
  • 4