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
3
votes
0 answers

implementation of DFT in C++

I want to implement the DFT (Discrete Fourier Transform) in C++ language to process images. As I was studying the theory, I got to know, that I can divide the 2D DFT into two 1D DFT parts. Firstly, for each row I perform 1D DFT then I do it for…
sashafierce
  • 83
  • 1
  • 11
3
votes
3 answers

Flood filling C++

I have a problem with implementation of flood filling. The task is to ask user to click on the white part of the image (indicating seed point), he want to fill with black. The operation should be done on the binary images. I'm using CImg library. I…
sashafierce
  • 83
  • 1
  • 11
3
votes
1 answer

Create CImg from byte array?

I'm trying to modify a C++ library that has a function that creates a CImg instance from an image file, to use a byte array instead. Is this possible? I found one method that appears to allow it... CImg ( const t *const values, const…
Random
  • 1,896
  • 3
  • 21
  • 33
3
votes
2 answers

Usinfg CImg lib with Qt for faster image resizing. Is It worth it to dig?

My project is to batch resize a big number (30000) of small jpeg images (400*300) to 15 different destination sizes (which are smaller than the source). I first created a multi-threded command line tool based on CImg and libjpg to batch process the…
Yassine Zaroui
  • 403
  • 3
  • 14
3
votes
0 answers

Update Cimg images and display from call back functions

I'm writing some C++ code to display the images got from a camera. In the code, a call-back function will be called by the camera every time a new image comes through and I'll get a pointer in memory where the image is stored. Now I want to use CImg…
3
votes
2 answers

C++ 16 bit grayscale gradient image from 2D array

I'm currently trying to build a 16 bit grayscale "gradient" image but my output looks weird so I'm clearly not understanding this correctly. I was hoping somebody could shine some knowledge on my issue. I think that the "bitmap" I write is wrong?…
user2316289
  • 39
  • 1
  • 7
3
votes
1 answer

Cannot import libpng, libjpeg in ndk android

I forked, Ucrop library for cropping, and made some changes. Now i have to build the ndk to make the changes. But am keep getting this error: Android NDK: jni/Android.mk: Cannot find module with tag 'libpng' in import path Android NDK: Are you…
Jerin A Mathews
  • 8,572
  • 4
  • 26
  • 49
3
votes
1 answer

Undefined reference error using CImg in C++

I'm using CImg for image processing, and I wanted to try a very simple example that turns some pixels of an image to black: main.cpp #include #include #include "CImg.h" using namespace cimg_library; int main() { // read…
leqo
  • 356
  • 4
  • 15
3
votes
2 answers

CImg X11 Linking Error using CLion and CMake

I have a C++ project in CLion (Ubuntu) that uses the CImg library. Currently, I cannot get the project to build properly. I have included the CImg.h file in my main.cpp file. I get an output like seen here. I made sure I had X11 tools installed…
3
votes
1 answer

CImg Python 3 bindings or something at least comparable?

i'm searching a Python lib with good image processing functionalities . I was searching for CImg (which i've already used on C++ projects) bindings, but i wasn't lucky. I found PIL, but it lacks a lot of features that CImg has so, is there any good…
Simone Margaritelli
  • 4,584
  • 10
  • 45
  • 70
3
votes
2 answers

From perspective picture to orthographic picture

So my problem, as I said in the title is that I have an image that is in an perspective view and I to transform it into the orthographic view. But as far as I can understand this example : the distance from the camera to the NearClip plane and to…
Raph Schim
  • 528
  • 7
  • 30
3
votes
1 answer

CUDA image processing error

I am working on a small image processing project. I want to run a CUDA program that does image subtraction. So you have the image background and an image with the same background but with some other things on it. Once you subtract the to images you…
KostasRim
  • 2,053
  • 1
  • 16
  • 32
3
votes
3 answers

Parsing string as a line of code in C++

Is it possible that a string variable can be parsed as an actual line of code in C++? For example, can this string, "x=0", be parsed as actual code and set the value of x (some random variable in the program) to zero? What I plan to do with this is…
user4049074
3
votes
1 answer

How to use 'CImg' and it's basic functions

I have been trying to understand how to use CImg's drawing functions but the documentation isn't very clear to me. I just want to draw a pixel, but I don't understand how draw_point works. Can someone give some examples of draw_point and of how to…
user4049074
3
votes
4 answers

How to assign values already stored in fixed memory to a cimg object

I am using the Cimg lib to do the image processing work. I have the pointer of an array returned by GPU, and I want to the Cimg object to take the value of the array directly. Now, I am using the for loops to do the work, but it is not very…
user2718830
  • 43
  • 1
  • 8
1
2
3
19 20