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

CImg transpose function gives wrong width

I am using CImg for Image processing assignment. After calling transpose() with the following code cout << image_subsample.width() << ","<
Bhavik Shah
  • 5,125
  • 3
  • 23
  • 40
0
votes
1 answer

Trying to make a live data grapher with CImg library (C++)

I'm new to CImg. Not sure if there's already a live data plotter in the library but I thought I'd go ahead and make one myself. If what I'm looking for already exists in the library please point me to the function. otherwise, here is my super…
Ben Marconi
  • 161
  • 1
  • 1
  • 7
0
votes
1 answer

CImg - Saliency with spectral approach

I am trying to implement the spectral approach to get the saliency of an image with CImg, but I'm having trouble getting there. This might seems like a repost from this question (spectral residual saliency detection in C++ with CImg) but I think I…
user3360437
  • 87
  • 1
  • 7
0
votes
0 answers

CImg throws exception randomnly

I have a code which loads an image file, writes to a pixel in the image and saves the image. This method is called in a loop and every time, the image will be loaded, one of its pixel will be written a value and then, the image is saved. Some pixels…
kT91
  • 23
  • 3
0
votes
1 answer

CSS: : Trying to get heights of sections / divs to match up....one without an img

I have an issue where I have a row on my site and two-thirds are a background image with text on top of it. The other third is just an image. So two sections or divs. I'm trying to get the heights to match up so whatever the height of the div on the…
Adam Bell
  • 1,049
  • 1
  • 16
  • 50
0
votes
1 answer

Cimg border reading

#include "CImg.h" #include #include #include #include using namespace std; using namespace cimg_library; class Imagen{ public: CImg contorno(char[60]); CImg binarizar(char[60],int); CImg
ñññ
  • 1
  • 1
0
votes
0 answers

Interactive Grid Control

I need to code a C++ application that allows the user to edit a Grid that has been created. This grid will allow the user to subdivide an image in blocks. I'm familiar with opencv, Itk, Cimg and VTK libraries, but I don't know if those libraries…
Assil
  • 1
  • 2
0
votes
1 answer

Complex modification of single channel using CImg

Using the CImg image processing library, I am trying to achieve something rather trivial. I want to do some complex modification (including intermediate steps and copies) of only the intensity channel of an HSI image. At the moment my approach is to…
Jakob S.
  • 1,851
  • 2
  • 14
  • 29
0
votes
1 answer

Set default value for alpha in CImg

I need to load an RGB image into RGBA form in CImg (R1R2R3 G1G2G3 B1B2B3 A1A2A3 etc) and the get im.data() properly. For now Cimg is reading RGB only (R1R2R3 G1G2G3 B1B2B3). How do I add the alpha channels to the image with default value of 255?
Dzung Nguyen
  • 3,794
  • 9
  • 48
  • 86
0
votes
1 answer

CImg: stack overflow when loading .cimg file

I'm stumped on a crash here. I have in the past been able to load .cimg files fine. These files are saved with the CImg.save() function. Paths look…
msarahan
  • 1,081
  • 9
  • 20
0
votes
2 answers

Tissue based image segmentation

I'm working on a project to do a segmentation of tissu. So far i so good for now. But her i want to segment the destructed from the good tissu. Her is an image example. So as you can see the good tissus are smooth and the destructed ones are not. I…
0
votes
1 answer

Write TIFF float images using CImg

I'm using CImg and I have noticed that I cant write TIFF images with float data. CImg wrotes them as 1byte/per pixel integer images. ¿Does anyone know if it is possible to write float images? Or, do you know other lib to do it.
Lucaaas
  • 1
  • 1
  • 2
0
votes
2 answers

CImg cubic subpixel location

I am trying to understand what a code is doing that uses CImg.h file of C++ Image Processing Toolkit for extract a value from an image. The function uses the following statement: float dx(float x, float y, CImg &i) { float val =…
iblasi
  • 1,269
  • 9
  • 21
0
votes
0 answers

CImg and Eigen, eigenvalues coming up all the same values

I am using CImg and the Eigen library for a facial recognition project. I have everything (seemingly) working up until the point where i generate the eigenvalue vector. Then all values come up as the same (-6.27744e+066), which is obviously…
CChiste
  • 131
  • 1
  • 2
  • 13
0
votes
1 answer

CImg saving images changes values?

So I am using the CImg library to have some fun with images... The issue is that when I open a file to change its RGB values and save, the modified image does not retain the changed values OR the original value. CImg image_out(…
OrangesV
  • 322
  • 1
  • 2
  • 9