Questions tagged [cimg]

The CImg Library is a small, open source, C++ toolkit for image processing.

The CImg Library is a small, open source, C++ toolkit for image processing.

CImg stands for Cool Image: It is easy to use, efficient and is intended to be a very pleasant toolbox to design image processing algorithms in C++. Due to its generic conception, it can cover a wide range of image processing applications.

297 questions
0
votes
1 answer

Put text onto Image by using C or C++ without using puttext function in OpenCV

does anyone know how to write a code(C/C++) to put text into images without using the puttext function in opencv? I'd been google-ing for this function for quite awhile, but didn't manage to get a solution.
Ong Sie Siong
  • 41
  • 1
  • 1
0
votes
0 answers

using CImg in cpp

i'm trying to open image file for an university project using the CImg library. when trying to load a png file, i get a message that the format file is not supported. after some reading, i tried to install ImageMagick++ and add it as a dependency to…
Shai
  • 1
0
votes
1 answer

C++ Image 2D Fast Fourier Transform

I have to implement 2D FFT transform on the image (I cannot use library to do it for me - part of the course). I use CImg to load and save images. I have made the following code: CImg FastFourier(CImg &originalImage) { …
mgrzellak
  • 11
  • 1
  • 7
0
votes
1 answer

Cimg Display fullscreen

I have written a C++ program to perform a slide show that works perfectly sequentially and randomly on my ubuntu desktop and also on the target Raspberry Pi where the slide show should run. This is basically the code I use to display: #include…
Renato R
  • 1
  • 2
0
votes
0 answers

CImg and Jpg format fix?

Well my issue is basically that I am trying to use Cimg and load an image. It works for .ppm and .bmp files, but when I try and load a .jpg image it doesn't work. I read up somewhere I must have the right image magick installed, etc. I installed the…
Ace
  • 9
  • 1
0
votes
1 answer

How to use Neighborhood-for using all the channels?

I have an RGB image in 2D. I would want to create groups of pixels that have the same color (RGB value); they are read from left to right and then from top to bottom. When the current pixel has an RGB value different from the previous, it means I…
JarsOfJam-Scheduler
  • 2,809
  • 3
  • 31
  • 70
0
votes
1 answer

CImg : what kind of values are required on this constructor?

In the documentation (http://cimg.eu/reference/structcimg__library_1_1CImg.html#a24f3b43daa4444b94a973c2c3fff82c5), you can read that the N°7 constructor requires an array of values to fill the image : values = Pointer to the input memory…
JarsOfJam-Scheduler
  • 2,809
  • 3
  • 31
  • 70
0
votes
1 answer

What exactly should I change when performing image filtering using convolution

So I'm supposed to write this image processing program using convolution. This is the header:CImg FilterImage(const CImg& image,const CImg& filter) and we can only access width, height, depth and spectrum. I understand how convolution works but I…
Nathan
  • 350
  • 1
  • 2
  • 11
0
votes
2 answers

Cannot load any image with CImg

Any time I try to load an image I get an error saying CImg::load(): Failed to recognize format of file. This happens for both jpg and png files. I have found other posts about this saying to define cimg_use_png and cimg_use_jpeg, but…
Alex
  • 642
  • 1
  • 9
  • 23
0
votes
3 answers

What is the name of CImg's library?

I'm trying to find the Cimg library so that I can add it to libraries I have in Dev-c++, but there's no folder in Cimg named lib, so what's it called? Thanks.
Eric
  • 89
  • 1
  • 1
  • 3
0
votes
1 answer

Is there a quicker way to extract floats from a 32 bit tiff than LibTIFF?

I am currently using this to extract floats: TIFF* tiff = TIFFOpen(tiffs[i].c_str(), "r"); if (tiff) { uint32 width, height; tsize_t scanlength; if (TIFFGetField(tiff,TIFFTAG_IMAGEWIDTH, &width) != 1) {} if…
user8149522
0
votes
0 answers

Errors while trying to build an application with Cimg

I am trying to use CImg. I want to load pngs but to do so you need to add the dependency Libpng which also requires zlib. I added all the required .h files directly from the zip file from their sites into my project using the add existing item on…
0
votes
1 answer

Error when attempting to save image with CImg

I am attempting to generate map tiles from a world generator that I have adapted using libnoise. Using the libnoise saving methods work fine, but when attempting to scale and crop images using CImg, i get the following error: [CImg] ***…
Oa10712
  • 45
  • 6
0
votes
2 answers

Display several images using CImg class on C++

How can one display several images of cards (52 cards) into a 'grid'? I am trying to create four piles in the upper left corner, four piles in the upper right corner, eight piles that make up the main table for my game with the use of CImg class.
Niz.Dam
  • 149
  • 1
  • 10
0
votes
1 answer

C++ seg fault on gaussian mean filter using cimg

I just tried implemting this filter using cimg but keep getting a seg fault. I am not sure why this is happening as the other filters that I have been using do not have that issue. Is there anything obvious that I am missing here? CImg
mosch
  • 3
  • 1