cimg Questions
3
Solved
I have been using the CImg library, and have been pleased with how easy it is to integrate and use. However, I now want to draw thick lines (i.e., more than one pixel thick). It is not clear from t...
2
Solved
Any time I try to load an image I get an error saying CImg<unsigned char>::load(): Failed to recognize format of file. This happens for both jpg and png files.
I have found other posts about...
2
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 s...
3
Solved
I am trying to capture an image of the screen for use in screencasting. Thus I need a fast solution, and cannot rely on shell programs such as import or xwd.
This is the code I have written so fa...
Cricoid asked 23/11, 2011 at 22:1
4
Solved
CImg<unsigned char> src("image.jpg");
int width = src.width();
int height = src.height();
unsigned char* ptr = src.data(10,10);
How can I get rgb from ptr?
Eutrophic asked 20/7, 2010 at 15:58
2
Solved
I am using pHash and that library uses libpng. I am having issues running my program because libpng fails loading a PNG file.
Version of libpng: 1.4.19
Platform: Windows 10
Environment: Visual St...
Pindus asked 6/7, 2016 at 16:17
2
Solved
I try to use the cimg library. I have included the CImg.h-header file. But when I try to compile it, I get a linking error.
/tmp/cc2tvYsW.o: In function `cimg_library::cimg::Mutex_info::tryl...
4
Solved
I have about 150.000 pictures and some of these are duplicates.
I have figured that the SSIM algorithm is a good choice to compare two pictures and see if they are duplicates.
However if I want to ...
2
Solved
Here is the entirety of my code:
#include "CImg.h"
#include <iostream>
using namespace cimg_library;
int main() {
CImg<float> image(100,100,1,3,0);
const float color[] = {1.0,1.0,0.0...
1
Solved
I am unable to load PNGs with CImg. I've heard you need to get libpng / zlib to get to work first but I am unsure how to set this up. I am on Ubuntu. My source:
#include <cmath>
#include <...
1
© 2022 - 2024 — McMap. All rights reserved.