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
1
vote
2 answers

Read image and access bytes in boost::gil

Is it possible to: read an image given by just a filename (not knowing the image format) to a 2d matrix rgb uncompressed form (e.g. read an JPG to a 2d array) access the bytes of that image, copy them, change them... (e.g. inverse the colors, I…
Queequeg
  • 2,824
  • 8
  • 39
  • 66
1
vote
0 answers

With boost::gil, how do I get a gray8s view of a gray8 unsigned image or view

Using boost::gil how do I create a view that applies to a gray8 image or view and provides a gray8s view? What I'd expect: for these two cases I'd expect each pixel value in the view to be equal to its corresponding pixel value in the source image…
codeshot
  • 1,183
  • 1
  • 9
  • 20
0
votes
1 answer

How can I read a png image using libpng?

#include "stdafx.h" #include #include namespace gil = boost::gil; int _tmain(int argc, _TCHAR* argv[]) { gil::gray8_image_t input; …
frederik
  • 51
  • 3
0
votes
0 answers

C++ Boost GIL Library; Issue with converting PNG to JPG

I'm working on a small personal project that converts images from different formats for ML purposes - specifically with multi-threading in mind. Initially, everything was working smoothly: PNGs were being converted into JPGs as expected. I then…
Zane
  • 1
  • 2
0
votes
0 answers

C++ - Loading Base64 Encoded String of an image to Boost GIL image/view

I'm using Boosts Generic Image Library. I'm being given a string representation of an image. After decoding it, could I directly make an Image or View object with that data? Or would I need to write the data to the computer as example.png and use…
Stone
  • 23
  • 4
0
votes
0 answers

Histogram equalization upon RGB images? RGB ouput possible?

I was writing code for histogram equalization upon RGB images? It was suggested not performing equalization operation against R-G-B channels respectively. So I first converted RGB to YUV color space and then performed equalization on Y channel…
Moduki
  • 21
  • 2
0
votes
1 answer

How to build libjpeg.lib for using it with ijg jpeg library?

I want to read jpeg images for my program, which uses GIL (a Boost library). In the documentation for GIL, it is recommended to use the jpeg library present at http://www.ijg.org/. Among other things, it is also required to compile and link against…
Parth
  • 35
  • 1
  • 2
  • 5
0
votes
1 answer

Type conversion with Boost Generic Image Library

I currently have an image of the type boost::gil::rgb8c_view_t. I need to pass it to a function with this prototype: void function(const boost::gil::rgb8c_view_t& input, const int index, const boost::gil::rgb8c_view_t::view_t &output) I have…
-2
votes
1 answer

save png from the results of glReadPixels

From previous questions 1 and 2, I have the following codes: How to capture screen: int width = glutGet(GLUT_WINDOW_WIDTH); int height = glutGet(GLUT_WINDOW_HEIGHT); std::vector< unsigned char > rgbdata(4*width*height); glReadPixels(0, 0, width,…
ar2015
  • 5,558
  • 8
  • 53
  • 110
1 2 3 4
5