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

LOGO Turtle-like in C++, drawing curves

I am creating a LOGO Turtle-like object in C++ using the CImg library. When attempting to draw a circle, defined as the commands repeat 360[fd 1 rt1] which loops 360 times, moving forward 1 pixel and turning right 1 degree each iteration. With my…
CChiste
  • 131
  • 1
  • 2
  • 13
0
votes
1 answer

How to convert CImg float image type to unchar image(0-255) type

I am using CImg library and implementing non maximum suppression for Harris Corner Detector. Because calculation of numbers like determinants requires float type image, I declared images as float type. But when exracting local maximum on the harris…
CathIAS
  • 305
  • 2
  • 15
0
votes
0 answers

Get Cimg image buffer

I write a code to convert Cimg image to ITK image. I want to get the buffer from my Cimg image to do that. What should i do to get the buffer from a CImg image? Thanks a lot for the help.
0
votes
2 answers

CImg reading image exception

I am using CImg to read a .png file, like following: // DGT.cpp : Defines the entry point for the console application. #include "stdafx.h" #include #include #include "..\CImg\CImg.h" using namespace std; using namespace…
Ono
  • 1,357
  • 3
  • 16
  • 38
0
votes
1 answer

Debugging app with CImg library included

I'm writing program to analyze 3D raw images. I have strange problem with loading this files. During debugging: (...) string input_filename = file_i; CImg img_org(500, 500, 500, 1); img_org.load_raw(file_i, 500, 500, 500, 1); (...) I…
Adek
  • 43
  • 1
  • 7
0
votes
2 answers

c++ structs as private data member

I have a project using the CImg library. What I have to do is declare classes that inherit from an abstract base class called shape. These classes are classes for the different shapes(circle, rectangle .. etc). What I want to do is use a struct…
Mustafa
  • 177
  • 1
  • 2
  • 10
0
votes
1 answer

Best way to display 2D vectors with CImg

What is the best way to display a 2D matrix using CImg? I am trying the following code but it is giving me a segmentation fault: float matrix[100][100]; int i; int j; for (i=0; i<100; i++) { for (j=0; j<100; j++) { …
Jaime Ivan Cervantes
  • 3,579
  • 1
  • 40
  • 38
0
votes
1 answer

How to Convert CImg to TBitmap?

in my project i am using CImg library, after image processing i want to show my image result in a TBitmap in C++ Builder XE2, please someone tell me how to do that. Thanks.
Henka Programmer
  • 433
  • 6
  • 18
0
votes
1 answer

Compiling CImg with c++0x and MingW

I am trying to compile the following CImg sample code with std=c++0x and MingW: #include "CImg.h" using namespace cimg_library; int main() { CImg img(640,400,1,3); img.fill(0); unsigned char purple[] = { 255,0,255 }; …
Jaime Ivan Cervantes
  • 3,579
  • 1
  • 40
  • 38
0
votes
1 answer

CImg image loading error in example files

I just installed cImg, and began to go through some of the example files to get myself oriented. Every program that loads an image from the example folder compiles fine, then hits this error in the Command Window while…
user3241316
  • 167
  • 2
  • 11
0
votes
1 answer

How to change display normalization settings in CImg?

I have read this part of the CImg documentation: However, it is not clear how to set this normalization levels (it is not a display() function parameter). Can anybody tell me how to use them? Thank you!
Javi
  • 3,440
  • 5
  • 29
  • 43
0
votes
1 answer

CImg does not find function draw_text

I'm trying to use the CImg library, but I can't get it to work. I'm working on a mac in terminal and I wrote a hello world program #include "CImg.h" using namespace cimg_library; int main() { const unsigned char purple[] = { 255,0,255…
bersling
  • 17,851
  • 9
  • 60
  • 74
0
votes
2 answers

QT + CImg will not build on OSX 10.9

I'm taking over a project where I need to work with QT Creator and CImg, however it won't build on my machine. /Users/vikkosmi/Qt/5.2.0/clang_64/lib/QtCore.framework/Headers/qvariant.h:132: error: expected '}' Bool = QMetaType::Bool, ^ This…
Vikko
  • 1,396
  • 10
  • 23
0
votes
1 answer

cimg display() nothing, but debug messages are right

Env: win7 mingw g++ 4.6.2 The code is very simple. CImg img("xxx.jpg"); img.display(); I use g++ -o xxxx xxxx.cpp -lgdi32 to compile the program. The debug messages show the image was read correctly. I mean the values of pixels. But the…
Guosheng
  • 91
  • 4
0
votes
0 answers

Segmentation Fault when loading image pixel by pixel using CImg

I am trying to compute the mean of an image by loading pixel by pixel. My image has 6 channels, height and with are 512 and depth is 1. It is stored at the first position of an ImgList containing 2 elements. My code is as follows: int main(){ float…
Anthony
  • 443
  • 1
  • 5
  • 16