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
2
votes
2 answers

How to test if a pixel in an image is of a certain color in CImg?

I am writing a program with CImg where I want to test if a pixel in an image is the color #00FF00. How do I do this?
ckjbgames
  • 123
  • 6
2
votes
2 answers

C++ fast way to save image from array of values

Right now, I am using CImg. I am unable to use OpenCV due to this issue. My CImg code looks like this: cimg_library::CImg img(512,512); cimg_forXYC(img,x,y,c) { img(x,y,c) = (array[x][y]); } //array contains all float values between…
user8149522
2
votes
1 answer

setting the line pattern using CIMG for c++

I am trying to learn Cimg but simetimes the documentation is very vague. I am playing with the drawing functions and I want to draw a line. the functoon declaration is very simple: CImg& draw_line ( const int x0, const int y0, …
Diego Fernando Pava
  • 899
  • 3
  • 11
  • 24
2
votes
2 answers

Unresolved external symbol error while using CImg library

I am trying to use CImg library for some image processing task. Using VS 2012 on Windows 7 x64, I am building a project to create dll that I need for my application. I have included the only header file CImg.h from the library. But as soon as I…
Prakhar
  • 325
  • 1
  • 9
2
votes
1 answer

How do I capture and Process each and every frame of an image using CImg library?

I'm working on a project based on real time image processing using CImg Library in Raspberrypi. I need to capture images at higher frame rates (say atleast 30 fps), when I use the inbuilt Raspicam commands such as sudo raspistill -o -img_%d.jpg -tl…
Lohith Kumar
  • 23
  • 1
  • 6
2
votes
3 answers

Why can CImg achieve this kind of effect?

The compilation is done on the fly : only CImg functionalities really used by your program are compiled and appear in the compiled executable program. This leads to very compact code, without any unused stuffs. Any one knows the…
user198729
  • 61,774
  • 108
  • 250
  • 348
2
votes
1 answer

Strange syntax in CImg library, don't know what it's called

I've been using CImg to generate some images, but I've come across a strange syntax and I don't know what it's called. It allows you to do something like this: cimg_forXYC(image, x, y, z){ // I can set things about the image here image(x,…
theStandard
  • 212
  • 2
  • 9
2
votes
0 answers

CImg loading image fails

Hi i am using cimg to process images in c++ with Xcode, but whenever i try to load an image it fails to do so. I have placed the image in the same directory as the project, and besides that i have even specified the filepath. I have also installed…
Endi Zhupani
  • 736
  • 2
  • 7
  • 22
2
votes
1 answer

Fourier Filtering using CIMg & C++

I need to implement a very simple filter that suppresses a range of frequencies. Then I need to compute the inverse Fourier transform and save the new image. I am using the CImg library ( C++ ). So far I have done: const CImg
gosom
  • 1,299
  • 3
  • 16
  • 35
2
votes
1 answer

Getting the dimensions of a rendered text in Cimg library

I have an image of a rectangle, and I need to draw the rectangle's dimensions in it. Now I want to find out the size of a text I'm about to draw so that I can determine an appropriate font size, as to make sure the text does not go outside of the…
user2520938
  • 411
  • 3
  • 15
2
votes
1 answer

CImg on binary image data

I created a binary file after taking a snapshot using X11 xGetImage and stored contents of data field in a binary file(The file has been zipped. Please uncompress it). Now, i was playing around a bit with CImg and learning its usage. First…
Ayush choubey
  • 606
  • 6
  • 23
2
votes
1 answer

C++ library for merging images

I need to merge a couple of images so that image2 covers parts of image1 and so on. I found the CImg library but I couldn't find out how to use it for my purposes. Is there any other library I could use or may I achieve this with CImg?
BlackMamba
  • 1,449
  • 2
  • 12
  • 18
2
votes
1 answer

cimg multiple window placement

I'm using CImgDisplay to show a couple of images onscreen. My problem is that they're opening on top of the Command Prompt window and each other. Is there a way to make them open at a different location? I've looked through the CImg documentation…
user3241316
  • 167
  • 2
  • 11
2
votes
1 answer

CImg library creates distorted images on rotation

I want to use the CImg library (http://cimg.sourceforge.net/) to rotate an image with an arbitrary angle (the image is read by Qt which should not perform the rotation): QImage img("sample_with_alpha.png"); img =…
Hyndrix
  • 4,282
  • 7
  • 41
  • 82
2
votes
3 answers

Segmentation fault when different input is given

I do some image processing work in C++. For this i use CImg.h library which i feel is good for my work. Here is small piece of code written by me which just reads an image and displays it. #include "../CImg.h" #include "iostream" using namespace…
sravan
  • 41
  • 1
  • 5